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
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to