Re: Setting i18n:domain to a variable
"José Henrique" <[email protected]> Thu, 23 Nov 2006 13:02:04 -0200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
Use tal:attributes to set the values:
<h2 tal:define=3D"statusMessage python:request.get('statusMessage');
domain python:request.get('domain')"
tal:attributes=3D"i18n:domain domain;
i18n:translate string:">someText</h2>
Jos=E9 Henrique.
2006/11/22, Josef Meile <[email protected]>:
>
> Hi,
>
> I'm wondering if something like this is possible:
> <h2 tal:define=3D"statusMessage python:request.get('statusMessage');
> domain python:request.get('domain')"
> i18n:translate=3D""
> i18n:domain=3D"domain" tal:content=3D"statusMessage">someText</h2>
>
> I even replaced the i18n:domain directive by:
>
> i18n:domain=3D"python:request.get('domain')"
>
> But it is not working for me. I always get the original message. I guess
> everything inside i18n:domain is interpreted as a string. I know I can
> do this programmatically, but it would be cool if I could do that
> directly in zpt.
>
> TIA,
> Josef
>
> _______________________________________________
> ZPT mailing list
> [email protected]
> http://mail.zope.org/mailman/listinfo/zpt
>