Re: Re: Setting i18n:domain to a variable
Chris Withers <[email protected]> Fri, 24 Nov 2006 09:25:43 +0000
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
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