[Zope3-checkins] CVS: Zope3/src/zope/app/presentation - pagefolder.py:1.5 presentation.py:1.17

Dmitry Vasiliev dima at hlabs.spb.ru
Fri Apr 23 09:44:07 EDT 2004


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

Modified Files:
	pagefolder.py presentation.py 
Log Message:
New message id's added, zope.pot updated


=== Zope3/src/zope/app/presentation/pagefolder.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/presentation/pagefolder.py:1.4	Sat Apr 17 11:13:10 2004
+++ Zope3/src/zope/app/presentation/pagefolder.py	Fri Apr 23 09:43:36 2004
@@ -44,6 +44,7 @@
 from zope.app.filerepresentation.interfaces import IDirectoryFactory
 from zope.fssync.server.interfaces import IObjectDirectory
 from zope.app.registration.interfaces import IRegisterableContainer
+from zope.app.i18n import ZopeMessageIDFactory as _
 
 class IPageFolderInfo(Interface):
     """Default registration information for page folders
@@ -52,32 +53,32 @@
     """
 
     required = InterfaceField(
-        title = u"For interface",
-        description = u"The interface of the objects being viewed",
+        title = _(u"For interface"),
+        description = _(u"The interface of the objects being viewed"),
         required = True,
         )
 
     factoryName = BytesLine(
-        title=u"The dotted name of a factory for creating the view",
+        title=_(u"The dotted name of a factory for creating the view"),
         required = False,
         )
 
     layer = BytesLine(
-        title = u"Layer",
-        description = u"The skin layer the view is registered for",
+        title = _(u"Layer"),
+        description = _(u"The skin layer the view is registered for"),
         required = False,
         min_length = 1,
         default = "default",
         )
 
     permission = PermissionField(
-        title=u"Permission",
-        description=u"The permission required to use the view",
+        title=_(u"Permission"),
+        description=_(u"The permission required to use the view"),
         required = True,
         )
 
     apply = Bool(
-        title=u"Apply changes to existing pages",
+        title=_(u"Apply changes to existing pages"),
         required = True,
         )
 


=== Zope3/src/zope/app/presentation/presentation.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/presentation/presentation.py:1.16	Sat Apr 17 10:33:09 2004
+++ Zope3/src/zope/app/presentation/presentation.py	Fri Apr 23 09:43:36 2004
@@ -297,23 +297,23 @@
 class IViewRegistration(zope.app.adapter.IAdapterRegistration):
 
     required = zope.app.component.interfacefield.InterfaceField(
-        title = u"For interface",
-        description = u"The interface of the objects being viewed",
+        title = _(u"For interface"),
+        description = _(u"The interface of the objects being viewed"),
         readonly = True,
         required = True,
         basetype = None
         )
 
     requestType = zope.app.component.interfacefield.InterfaceField(
-        title = u"Request type",
-        description = u"The type of requests the view works with",
+        title = _(u"Request type"),
+        description = _(u"The type of requests the view works with"),
         readonly = True,
         required = True,
         )
 
     layer = zope.schema.BytesLine(
-        title = u"Layer",
-        description = u"The skin layer the view is registered for",
+        title = _(u"Layer"),
+        description = _(u"The skin layer the view is registered for"),
         required = False,
         readonly = True,
         min_length = 1,
@@ -373,22 +373,22 @@
 class IPageRegistration(IViewRegistration):
 
     factoryName = zope.schema.BytesLine(
-        title=u"Page class",
+        title=_(u"Page class"),
         required = False,
         )
 
     template = zope.app.registration.interfaces.ComponentPath(
-        title = u"Page template",
+        title = _(u"Page template"),
         required = False,
         )
 
     attribute = zope.schema.TextLine(
-        title = u"Class attribute",
+        title = _(u"Class attribute"),
         required = False,
         )
 
     factory = zope.interface.Attribute(
-        "Factory to be called to construct an adapter"
+        _("Factory to be called to construct an adapter")
         )
 
     def validate(self):




More information about the Zope3-Checkins mailing list