[Checkins] SVN: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/i18n.txt Failing test.
Malthe Borch
mborch at gmail.com
Mon Nov 17 08:07:23 EST 2008
Log message for revision 93045:
Failing test.
Changed:
U Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/i18n.txt
-=-
Modified: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/i18n.txt
===================================================================
--- Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/i18n.txt 2008-11-17 13:01:46 UTC (rev 93044)
+++ Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/i18n.txt 2008-11-17 13:07:23 UTC (rev 93045)
@@ -147,6 +147,24 @@
mapping={'bananas': '<span>12</span>', 'apples': '<span>8</span>'}.</span>
</div>
+Entities and dynamic translation strings:
+
+ >>> body = """\
+ ... <div xmlns="http://www.w3.org/1999/xhtml"
+ ... xmlns:i18n="http://xml.zope.org/namespaces/i18n">
+ ... <span i18n:domain="test" i18n:translate="">
+ ... <sup>®</sup>
+ ... </span>
+ ... </div>"""
+
+ >>> template = PageTemplate(body)
+ >>> print template.render()
+ <div>
+ <span>
+ <sup>®</sup>
+ </span>
+ </div>
+
Translation of tag attributes
-----------------------------
More information about the Checkins
mailing list