[Checkins] SVN: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/template.txt Added test that demonstrates an issue where the i18n:domain is changed inside the fill-slot closure; this would lead to an error.

Malthe Borch mborch at gmail.com
Sun Nov 16 06:35:20 EST 2008


Log message for revision 93002:
  Added test that demonstrates an issue where the i18n:domain is changed inside the fill-slot closure; this would lead to an error.

Changed:
  U   Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/template.txt

-=-
Modified: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/template.txt
===================================================================
--- Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/template.txt	2008-11-16 02:07:45 UTC (rev 93001)
+++ Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/template.txt	2008-11-16 11:35:19 UTC (rev 93002)
@@ -54,9 +54,9 @@
   ...      xmlns:tal="http://xml.zope.org/namespaces/tal"
   ...      xmlns:metal="http://xml.zope.org/namespaces/metal"
   ...      metal:use-macro="main.macros['master']">
-  ...   <div metal:fill-slot="content">
-  ...       I replace you: ${foo}.
-  ...   </div>
+  ...     <div metal:fill-slot="content">
+  ...         <tal:block i18n:domain="bar">I replace you: ${foo}.</tal:block>
+  ...     </div>
   ... </div>""")
 
   >>> print content(main=main)



More information about the Checkins mailing list