[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_contentdirective.py:1.6 test_directives.py:1.14 test_factory.py:1.7 test_servicedirective.py:1.10

Philipp von Weitershausen philikon at philikon.de
Sun Aug 3 14:50:51 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv11298/component/tests

Modified Files:
	test_contentdirective.py test_directives.py test_factory.py 
	test_servicedirective.py 
Log Message:
Made menu, factory and form titles and labels MessageIDs instead of plain
TextLines/Texts. That means that they'll be translated as soon as the
translation data is in place.

The change affected most ZCML files and tests that make up ZCML code as
they had to specify an i18n_domain. This is 'zope' for all of Zope3.

The change also breaks many Zope3 products as they probably do not specify
an i18n_domain. A fix for them will follow immediately.


=== Zope3/src/zope/app/component/tests/test_contentdirective.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/component/tests/test_contentdirective.py:1.5	Sat Aug  2 22:13:13 2003
+++ Zope3/src/zope/app/component/tests/test_contentdirective.py	Sun Aug  3 13:50:15 2003
@@ -38,10 +38,11 @@
 
 
 def configfile(s):
-    return StringIO("""<zopeConfigure
-      xmlns='http://namespaces.zope.org/zope'>
+    return StringIO("""<configure
+      xmlns='http://namespaces.zope.org/zope'
+      i18n_domain='zope'>
       %s
-      </zopeConfigure>
+      </configure>
       """ % s)
 
 class TestContentDirective(PlacelessSetup, unittest.TestCase):


=== Zope3/src/zope/app/component/tests/test_directives.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.13	Sat Aug  2 22:13:13 2003
+++ Zope3/src/zope/app/component/tests/test_directives.py	Sun Aug  3 13:50:15 2003
@@ -37,11 +37,12 @@
 from zope.interface import implements
 
 
-template = """<zopeConfigure
+template = """<configure
    xmlns='http://namespaces.zope.org/zope'
-   xmlns:test='http://www.zope.org/NS/Zope3/test'>
+   xmlns:test='http://www.zope.org/NS/Zope3/test'
+   i18n_domain='zope'>
    %s
-   </zopeConfigure>"""
+   </configure>"""
 
 class Ob:
     implements(IC)


=== Zope3/src/zope/app/component/tests/test_factory.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/component/tests/test_factory.py:1.6	Sat Aug  2 22:13:13 2003
+++ Zope3/src/zope/app/component/tests/test_factory.py	Sun Aug  3 13:50:15 2003
@@ -30,7 +30,8 @@
 
 def configfile(s):
     return StringIO("""<configure
-      xmlns='http://namespaces.zope.org/zope'>
+      xmlns='http://namespaces.zope.org/zope'
+      i18n_domain='zope'>
       %s
       </configure>
       """ % s)


=== Zope3/src/zope/app/component/tests/test_servicedirective.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/component/tests/test_servicedirective.py:1.9	Sat Aug  2 22:13:13 2003
+++ Zope3/src/zope/app/component/tests/test_servicedirective.py	Sun Aug  3 13:50:15 2003
@@ -28,7 +28,8 @@
 
 template = """<configure
    xmlns='http://namespaces.zope.org/zope'
-   xmlns:test='http://www.zope.org/NS/Zope3/test'>
+   xmlns:test='http://www.zope.org/NS/Zope3/test'
+   i18n_domain='zope'>
    %s
    </configure>"""
 




More information about the Zope3-Checkins mailing list