[ZPT] Re: Setting i18n:domain to a variable
Chris Withers
chris at simplistix.co.uk
Fri Nov 24 04:25:43 EST 2006
Josef Meile wrote:
> <html>
> <body tal:omit-tag=""
> tal:define="domain python:request.get('domain','JMGui')">
> <div tal:replace="domain"/>
> <h2 i18n:domain="JMMessages" i18n:translate="">Wrong selection</h2>
> <h2 tal:attributes="i18n:domain domain;
> i18n:translate string:">Wrong selection</h2>
> </body>
> </html>
I think if you find yourself needing to do something like this, your
application logic is flawed.
i18n:domain should never need to be dynamic in this fashion...
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the ZPT
mailing list