[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_talinterpreter.py:1.8.2.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 11:45:45 EDT 2003


Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv14375/src/zope/tal/tests

Modified Files:
      Tag: srichter-tal_i18n_take2-branch
	test_talinterpreter.py 
Log Message:
Since I am incredibly evil, I found another TAL+I18n bug.


=== Zope3/src/zope/tal/tests/test_talinterpreter.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/tal/tests/test_talinterpreter.py:1.8	Thu Aug 21 10:19:29 2003
+++ Zope3/src/zope/tal/tests/test_talinterpreter.py	Thu Aug 21 10:45:44 2003
@@ -84,6 +84,20 @@
         program, macros = self._compile('<span tal:replace="foo"/>')
         self._check(program, 'FOOVALUE\n')
 
+    def test_translate_with_static_i18nname(self):
+        program, macros = self._compile(
+            '<p i18n:translate="" >foo'
+            '<span i18n:name="foo_name">bar</span>'
+            '</p>')
+        self._check(program, '<p>FOO<span>bar</span></p>\n')
+
+    def test_translate_with_static_i18nname_and_omittag(self):
+        program, macros = self._compile(
+            '<p i18n:translate="" >foo'
+            '<span tal:omit-tag="" i18n:name="foo_name">bar</span>'
+            '</p>')
+        self._check(program, '<p>FOObar</p>\n')
+
     def test_replace_with_messageid_and_i18nname(self):
         program, macros = self._compile(
             '<div i18n:translate="" >'




More information about the Zope3-Checkins mailing list