On Wednesday 16 May 2012 18:04 Thomas Tanghus wrote:
> On Wednesday 16 May 2012 13:23 Robert Goldsmith wrote:
> > Maybe I've missed something but my interpretation of your problem is that
> > you want to add variable content into a translation string for an
> > attribute.
> > 
> > How about something like:
> > 
> > <div i18n:attributes="title" title="titleTranslationKey">
> > 
> >     <tal:block i18n:name="maxFilesize" tal:content="uploadMaxHumanFilesize"
> >     />
> > 
> > </div>
> > 

> 
> Well, this was a very long-winding way of asking: Is there any way I can set
> the variable in the markup before using it?

And then answer was so obvious that I didn't consider it:

<tal:block i18n:name="maxFilesize" tal:content="uploadMaxHumanFilesize" />
<div i18n:attributes="title" title="titleTranslationKey">
</div>

Dang, I have done it so many times. 2 minutes after I push "Send" I figure it 
out :-P

Thanks for the help.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to