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

Florent Guillaume fg@nuxeo.com
Sun, 6 Oct 2002 13:21:39 -0400


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

Modified Files:
	CheckI18nTranslate.html CheckI18nTranslateHooked.html 
Log Message:
Merged changes from the Zope-2_6-branch:
Modified the translation service to return None if no translation exist.
So now using i18n tags without a translation service should give the
same behavior as before. The tests reflect that.


=== Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslate.html 1.2 => 1.3 ===
--- Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslate.html:1.2	Wed Sep 18 11:12:47 2002
+++ Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslate.html	Sun Oct  6 13:21:08 2002
@@ -1,7 +1,12 @@
 <html>
 <body>
 <head>
-   <p i18n:translate="foobar">baz</p>
+   <p i18n:domain="foo" i18n:translate="bar">baz</p>
+   <a href="foo" alt="alttext" i18n:attributes="alt">link</a>
+   <p i18n:domain="dom" i18n:translate="">
+     <span tal:replace="string:Lomax" i18n:name="name" /> was born in
+     <span tal:replace="string:Antarctica" i18n:name="country" />.
+   </p>
 </head>
 </body>
 </html>


=== Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslateHooked.html 1.2 => 1.3 ===
--- Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslateHooked.html:1.2	Wed Sep 18 11:12:47 2002
+++ Zope/lib/python/Products/PageTemplates/tests/input/CheckI18nTranslateHooked.html	Sun Oct  6 13:21:08 2002
@@ -2,6 +2,11 @@
 <body>
 <head>
    <p i18n:domain="foo" i18n:translate="bar">baz</p>
+   <a href="foo" alt="alttext" i18n:attributes="alt">link</a>
+   <p i18n:domain="dom" i18n:translate="">
+     <span tal:replace="string:Lomax" i18n:name="name" /> was born in
+     <span tal:replace="string:Antarctica" i18n:name="country" />.
+   </p>
 </head>
 </body>
 </html>