[ZCM] [ZC] 1881/ 1 Request "bug in ZPT engine with tal:on-error and
i18n:translate"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Aug 31 09:56:41 EDT 2005
Issue #1881 Update (Request) "bug in ZPT engine with tal:on-error and i18n:translate"
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1881
==============================================================
= Request - Entry #1 by gotcha on Aug 31, 2005 9:56 am
The content inserted by tal:on-error in an element is not translated by the i18n machinery.
How to demonstrate :
add two files to test suite of TAL
> input/test37.html
> <span i18n:translate="" tal:content="xxx" tal:on-error="string:No xxx" />
> <span i18n:translate="" tal:content="string:xxx" />
> output/test37.html
> <span>NO XXX</span>
> <span>XXX</span>
the supplementary test fails; the output produced is :
> <span>No xxx</span>
> <span>XXX</span>
For those that do not know the test suite; the dummy translation service used actually transforms strings to uppercase.
==============================================================
More information about the Zope-Collector-Monitor
mailing list