[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/tests/output - CheckI18nTranslateHooked.html:1.1.4.3

Florent Guillaume fg@nuxeo.com
Thu, 30 Jan 2003 13:57:42 -0500


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/tests/output
In directory cvs.zope.org:/tmp/cvs-serv12227/lib/python/Products/PageTemplates/tests/output

Modified Files:
      Tag: Zope-2_6-branch
	CheckI18nTranslateHooked.html 
Log Message:
Merge from HEAD:

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.1.4.2 => 1.1.4.3 ===
--- Zope/lib/python/Products/PageTemplates/tests/output/CheckI18nTranslateHooked.html:1.1.4.2	Tue Sep 24 11:39:28 2002
+++ Zope/lib/python/Products/PageTemplates/tests/output/CheckI18nTranslateHooked.html	Thu Jan 30 13:57:09 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>