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

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


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

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/component/metadirectives.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/component/metadirectives.py:1.3	Sat Aug  2 22:13:08 2003
+++ Zope3/src/zope/app/component/metadirectives.py	Sun Aug  3 13:50:11 2003
@@ -17,7 +17,7 @@
 
 from zope.interface import Interface
 from zope.configuration.fields import GlobalObject, Tokens, Path, \
-     PythonIdentifier
+     PythonIdentifier, MessageID
 from zope.schema import Text, TextLine, Id
 
 class IBasicComponentInformation(Interface):
@@ -358,7 +358,7 @@
         required=False
         )
 
-    title = TextLine(
+    title = MessageID(
         title=u"Title",
         description=u"""
         text suitable for use in the 'add content' menu of a
@@ -366,7 +366,7 @@
         required=False
         )
 
-    description = Text(
+    description = MessageID(
         title=u"Description",
         description=u"Longer narrative description of what this factory does",
         required=False




More information about the Zope3-Checkins mailing list