bug in ZPT engine with tal:on-error and i18n:translate

Bug #143501 reported by Godefroid Chapelle
2
Affects Status Importance Assigned to Milestone
zope.tal
Invalid
Medium
Unassigned

Bug Description

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.

Tags: bug zope
affects: zope2 → zope.tal
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.tal project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.tal.

Changed in zope.tal:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.