[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - metadirectives.py:1.4

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


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

Modified Files:
	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/publisher/browser/metadirectives.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publisher/browser/metadirectives.py:1.3	Sat Aug  2 23:19:07 2003
+++ Zope3/src/zope/app/publisher/browser/metadirectives.py	Sun Aug  3 13:50:20 2003
@@ -20,7 +20,7 @@
 
 from zope.interface import Interface
 from zope.configuration.fields import GlobalObject, Tokens, Path, \
-     PythonIdentifier
+     PythonIdentifier, MessageID
 from zope.schema import Text, TextLine, Id
 
 from zope.app.component.metadirectives import IBasicViewInformation
@@ -54,7 +54,7 @@
         required=False
         )
 
-    title = TextLine(
+    title = MessageID(
         title=u"The browser menu label for the page (view)",
         description=u"""
           This attribute must be supplied if a menu attribute is
@@ -192,7 +192,7 @@
         required=False
         )
 
-    title = TextLine(
+    title = MessageID(
         title=u"The browser menu label for the page (view)",
         description=u"""
         This attribute must be supplied if a menu attribute is
@@ -342,7 +342,7 @@
         required=True
         )
 
-    title = TextLine(
+    title = MessageID(
         title=u"Title",
         description=u"A descriptive title for documentation purposes",
         required=True
@@ -391,13 +391,13 @@
         required=True
         )
 
-    title = TextLine(
+    title = MessageID(
         title=u"Title",
         description=u"The text to be displayed for the menu item",
         required=True
         )
 
-    description = Text(
+    description = MessageID(
         title=u"A longer explanation of the menu item",
         description=u"""
         A UI may display this with the item or display it when the




More information about the Zope3-Checkins mailing list