[PHPTAL] i18n:translate on an attribute ?

Christoph Frick frick at sc-networks.com
Mon Apr 28 10:08:41 CEST 2008


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" />

-- 
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20080428/6afbda7c/attachment.pgp


More information about the PHPTAL mailing list