[PHPTAL] i18n:translate on an attribute ?
Guillaume Lecanu
Guillaume at lya.fr
Mon Apr 28 11:43:55 CEST 2008
Le lundi 28 avril 2008 à 11:33 +0200, Guillaume Lecanu a écrit :
> Le lundi 28 avril 2008 à 10:08 +0200, Christoph Frick a écrit :
>
> > On Sat, Apr 26, 2008 at 07:44:26PM +0200, Iván -DrSlump- Montes wrote:
> >
> > > Does something like the following work?
> > >
> > > <tal:block tal:define="global submitMsg">
> > > <div i18n:translate="submit" />
> > > </tal:block>
> > > <input type="submit" name="submit" tal:attributes="value submitMsg" />
> >
> > or easier:
> >
> > <input type="submit" name="submit" value="Go Submit It" i18n:attributes="value" />
>
> yeahh ! it's perfect !!
>
> Thanks a lots Christoph :-)
And for those like me who using only keys for translates, we can do :
<input type="submit" value="Sample Submit" i18n:attributes="value
submit" />
(where 'submit' is the key string for "Go Submit It" )
-------------- section suivante --------------
Une pi�ce jointe HTML a �t� enlev�e...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080428/ca3d9b7a/attachment.htm
More information about the PHPTAL
mailing list