[PHPTAL] i18n:translate on an attribute ?

Iván -DrSlump- Montes drslump at pollinimini.net
Sat Apr 26 19:44:26 CEST 2008


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


Iván


On Sat, Apr 26, 2008 at 5:58 PM, Guillaume Lecanu <Guillaume at lya.fr> wrote:
>
>  Hi,
>
>  Is it possible to change the text of an attributes ?
>
>  For example I want to translate 'Send' : <submit name="submit" value="Send"
> />
>
>  Thanks
> _______________________________________________
>  PHPTAL mailing list
>  PHPTAL at lists.motion-twin.com
>  http://lists.motion-twin.com/mailman/listinfo/phptal
>
>



More information about the PHPTAL mailing list