[Zope3-checkins] CVS: Zope3/src/zope/app/adapter - adapter.py:1.10

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


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

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


=== Zope3/src/zope/app/adapter/adapter.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/adapter/adapter.py:1.9	Sat Apr 17 10:33:06 2004
+++ Zope3/src/zope/app/adapter/adapter.py	Fri Apr 23 09:43:33 2004
@@ -35,6 +35,7 @@
 import zope.component.adapter
 import zope.interface
 import zope.schema
+from zope.app.i18n import ZopeMessageIDFactory as _
 
 class LocalSurrogate(Surrogate):
     """Local surrogates
@@ -276,39 +277,39 @@
     zope.app.registration.interfaces.IRegistration):
 
     required = zope.app.component.interfacefield.InterfaceField(
-        title = u"For interface",
-        description = u"The interface of the objects being adapted",
+        title = _(u"For interface"),
+        description = _(u"The interface of the objects being adapted"),
         readonly = True,
         basetype = None,
         )
 
     provided = zope.app.component.interfacefield.InterfaceField(
-        title = u"Provided interface",
-        description = u"The interface provided",
+        title = _(u"Provided interface"),
+        description = _(u"The interface provided"),
         readonly = True,
         required = True,
         )
 
     name = zope.schema.TextLine(
-        title=u"Name",
+        title=_(u"Name"),
         readonly=True,
         required=False,
         )
 
     factoryName = zope.schema.BytesLine(
-        title=u"The dotted name of a factory for creating the adapter",
+        title=_(u"The dotted name of a factory for creating the adapter"),
         readonly = True,
         required = True,
         )
 
     permission = zope.app.security.permission.PermissionField(
-        title=u"The permission required for use",
+        title=_(u"The permission required for use"),
         readonly=False,
         required=False,
         )
         
     factory = zope.interface.Attribute(
-        "Factory to be called to construct the component"
+        _("Factory to be called to construct the component")
         )
 
 class AdapterRegistration(




More information about the Zope3-Checkins mailing list