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">
Dang, I have done it so many times. 2 minutes after I push "Send" I figure it
Thanks for the help.
Med venlig hilsen / Best Regards
PHPTAL mailing list