[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - configure.zcml:1.19 metadirectives.py:1.4

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


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

Modified Files:
	configure.zcml metadirectives.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/browser/form/configure.zcml 1.18 => 1.19 ===
--- Zope3/src/zope/app/browser/form/configure.zcml:1.18	Sun Jul 13 02:47:16 2003
+++ Zope3/src/zope/app/browser/form/configure.zcml	Sun Aug  3 13:49:03 2003
@@ -1,7 +1,8 @@
-<zopeConfigure
+<configure
    xmlns='http://namespaces.zope.org/zope'
    xmlns:browser='http://namespaces.zope.org/browser'
->
+   i18n_domain='zope'
+   >
 
   <!-- Form Widget View Directives -->
   <browser:defaultView for="zope.schema.interfaces.IField" name="edit" />
@@ -294,4 +295,4 @@
       class="zope.app.browser.form.widget.DisplayWidget"
       />
 
-</zopeConfigure>
+</configure>


=== Zope3/src/zope/app/browser/form/metadirectives.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/form/metadirectives.py:1.3	Sat Aug  2 22:13:02 2003
+++ Zope3/src/zope/app/browser/form/metadirectives.py	Sun Aug  3 13:49:03 2003
@@ -17,7 +17,7 @@
 
 from zope.interface import Interface
 from zope.configuration.fields import GlobalObject, Tokens, Path, \
-     Bool, PythonIdentifier
+     Bool, PythonIdentifier, MessageID
 from zope.schema import Text, TextLine, Id
 
 from zope.app.component.metadirectives import IBasicViewInformation
@@ -87,13 +87,13 @@
     Common information for browser forms
     """
 
-    title = TextLine(
+    title = MessageID(
         title=u"Title",
         description=u"The browser menu label for the form.",
         required=False
         )
 
-    label = TextLine(
+    label = MessageID(
         title=u"Label",
         description=u"A label to be used as the heading for the form.",
         required=False
@@ -225,7 +225,7 @@
     an object based on a schema.
     """
 
-    title = TextLine(
+    title = MessageID(
         title=u"The browser menu label for the edit form",
         description=u"This attribute defaults to 'Edit'.",
         required=False
@@ -236,7 +236,7 @@
     Define a Pane (page) of the wizard
     """
 
-    label = TextLine(
+    label = MessageID(
         title=u"Label",
         description=u"The label used as the heading on this pane",
         required=False,
@@ -299,7 +299,7 @@
     displaying an object based on a schema.
     """
 
-    title = TextLine(
+    title = MessageID(
         title=u"The browser menu label for the edit form",
         description=u"This attribute defaults to 'Edit'.",
         required=False




More information about the Zope3-Checkins mailing list