Stephan Richter wrote:
On Thursday 28 April 2005 03:59, Dmitry Vasiliev wrote:

Ok, I fully agree with this changes, but then I have one more question.
Should we do this changes on ZopeX3.0 branch? That about backward
compatibility for 3.0, for example if someone use code like this: '<h1
i18n:name="H1">foo</h1>'?

Okay, let's not backport this bug fix.

Ugh... Seems like the test29.html was wrong.

For following input data:

<div i18n:translate="">At the tone the time will be
<span i18n:data="here/currentTime"
      i18n:translate="timefmt"
      i18n:name="time">2:32 pm</span>... beep!</div>

result was:

<div>AT THE TONE THE TIME WILL BE 59 MINUTES AFTER 6 PM... BEEP!</div>

but the right result should was be (see zope.tal.driver.TestTranslations):

<div>AT THE TONE THE TIME WILL BE 59 minutes after 6 PM... BEEP!</div>

Seems like the wrong result was produced by double translate() call.


And for new (explicit) i18n:name behaviour result will be:

<div>AT THE TONE THE TIME WILL BE <span>59 minutes after 6 PM</span>... 
BEEP!</div>

--
Dmitry Vasiliev (dima at hlabs.spb.ru)
    http://hlabs.spb.ru
_______________________________________________
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