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

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


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

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/input/CheckI18nTranslateHooked.html 1.1.4.2 => 1.1.4.3 ===
--- Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslateHooked.html:1.1.4.2	Tue Sep 24 11:39:28 2002
+++ Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslateHooked.html	Thu Jan 30 13:57:06 2003
@@ -7,6 +7,9 @@
      <span tal:replace="string:Lomax" i18n:name="name" /> was born in
      <span tal:replace="string:Antarctica" i18n:name="country" />.
    </p>
+   <p i18n:translate="hmm">
+     I'm <span tal:replace="python:25" i18n:name="age">Age</span>
+   </p>
 </head>
 </body>
 </html>