[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests/output - CheckI18nTranslateHooked.html:1.4
Florent Guillaume
fg@nuxeo.com
Thu, 30 Jan 2003 13:19:14 -0500
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests/output
In directory cvs.zope.org:/tmp/cvs-serv6732/lib/python/Products/PageTemplates/tests/output
Modified Files:
CheckI18nTranslateHooked.html
Log Message:
I18n interpolation now tries to deal with the case where there is a mix
of Unicode and non-ascii string that are incompatible (because the
encoding of the latter is unknown) by substituting a representation of
the non-ascii string.
I18n interpolation doesn't fail anymore if a i18n:name is not provided,
the ${string} in the translation is just left as is.
Collector #696: tal:replace of a non-string (a number for examlpe)
associated with a i18n:name failed to be interpolated properly.
Improved tests for i18n and added tests for interpolate().
=== Zope/lib/python/Products/PageTemplates/tests/output/CheckI18nTranslateHooked.html 1.3 => 1.4 ===
--- Zope/lib/python/Products/PageTemplates/tests/output/CheckI18nTranslateHooked.html:1.3 Sun Oct 6 13:21:08 2002
+++ Zope/lib/python/Products/PageTemplates/tests/output/CheckI18nTranslateHooked.html Thu Jan 30 13:18:42 2003
@@ -1,9 +1,10 @@
<html>
<body>
<head>
- <p>[foo](bar)</p>
- <a href="foo" alt="[default](alttext)">link</a>
- <p>[dom](${name} was born in ${country}.)</p>
+ <p>[foo](bar/{})</p>
+ <a href="foo" alt="[default](alttext/{})">link</a>
+ <p>[dom](${name} was born in ${country}./{'country':'Antarctica','name':'Lomax'})</p>
+ <p>[default](hmm/{'age':25})</p>
</head>
</body>
</html>