[Zope3-dev] i18n in ZPT half-broken?

Jean-Marc Orliaguet jmo at ita.chalmers.se
Mon Sep 19 16:47:39 EDT 2005


Hi! I'm having trouble getting strings to be translated using
tal:content="variable" or tal:replace="variable"

  <p i18n:translate="" i18n:domain="zope">Everybody</p>

yield (in French):

  <p>Tous</p>


but:

  <p i18n:translate="" i18n:domain="zope" tal:content="string:Everybody" />

gives:

  <p>Everybody</p>

which means that the content is not translated.

as a workaround:

  <p i18n:translate="" i18n:domain="zope"><tal:block
content="string:Everybody"/></p>

works, since it yields:

  <p>Tous</p>


according to the documentation, i18n:translate="" tal:content="..."
should translate the evaluated content.
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZPTInternationalizationExamples
 
it works in Zope2, why is it different here?

/JM


More information about the Zope3-dev mailing list