[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/content - configure.zcml:1.1 file.py:1.3 sql.py:1.3 zpt.py:1.3
Jim Fulton
jim@zope.com
Tue, 25 Mar 2003 15:46:14 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/content
In directory cvs.zope.org:/tmp/cvs-serv29503
Modified Files:
file.py sql.py zpt.py
Added Files:
configure.zcml
Log Message:
Internationalized the content schema
=== Added File Zope3/src/zope/app/interfaces/content/configure.zcml ===
<zopeConfigure xmlns='http://namespaces.zope.org/zope'
xmlns:global_translation="http://namespaces.zope.org/gts">
<global_translation:registerTranslations directory="./locales" />
</zopeConfigure>
=== Zope3/src/zope/app/interfaces/content/file.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/content/file.py:1.2 Wed Dec 25 09:12:59 2002
+++ Zope3/src/zope/app/interfaces/content/file.py Tue Mar 25 15:46:13 2003
@@ -16,22 +16,21 @@
$Id$
"""
import zope.schema
-
from zope.interface import Interface
-
+from zope.app.i18n import ZopeMessageIDFactory as _
class IReadFile(Interface):
contentType = zope.schema.BytesLine(
- title = u'Content Type',
- description=u'The content type identifies the type of data.',
+ title = _(u'Content Type'),
+ description=_(u'The content type identifies the type of data.'),
default = 'text/plain',
)
data = zope.schema.Bytes(
- title = u'Data',
- description = u'The actual content of the object.',
+ title = _(u'Data'),
+ description = _(u'The actual content of the object.'),
)
def getData():
=== Zope3/src/zope/app/interfaces/content/sql.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/content/sql.py:1.2 Wed Dec 25 09:12:59 2002
+++ Zope3/src/zope/app/interfaces/content/sql.py Tue Mar 25 15:46:13 2003
@@ -20,6 +20,7 @@
from zope.component import getService
from zope.interface import Attribute
from zope.proxy.context import ContextProperty
+from zope.app.i18n import ZopeMessageIDFactory as _
class SQLConnectionName(zope.schema.TextLine):
@@ -37,19 +38,19 @@
"""A persistent script that can execute SQL."""
connectionName = SQLConnectionName(
- title=u"Connection Name",
- description=u"The Connection Name for the connection to be used.",
+ title=_(u"Connection Name"),
+ description=_(u"The Connection Name for the connection to be used."),
required=False)
arguments = zope.schema.BytesLine(
- title=u"Arguments",
- description=u"A set of attributes that can be used during the DTML "
- u"rendering process to provide dynamic data.",
+ title=_(u"Arguments"),
+ description=_(u"A set of attributes that can be used during the DTML "
+ u"rendering process to provide dynamic data."),
required=False)
source = zope.schema.Bytes(
- title=u"Source",
- description=u"The source of the page template.",
+ title=_(u"Source"),
+ description=_(u"The source of the page template."),
required=True)
def setArguments(arguments):
=== Zope3/src/zope/app/interfaces/content/zpt.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/content/zpt.py:1.2 Mon Dec 30 14:44:56 2002
+++ Zope3/src/zope/app/interfaces/content/zpt.py Tue Mar 25 15:46:13 2003
@@ -16,8 +16,8 @@
"""
import zope.schema
-
from zope.interface import Interface, Attribute
+from zope.app.i18n import ZopeMessageIDFactory as _
class IZPTPage(Interface):
"""ZPT Pages are a persistent implementation of Page Templates.
@@ -37,12 +37,12 @@
"""Get the source of the page template."""
source = zope.schema.Text(
- title=u"Source",
- description=u"""The source of the page template.""",
+ title=_(u"Source"),
+ description=_(u"""The source of the page template."""),
required=True)
expand = zope.schema.Bool(
- title=u"Expand macros",
+ title=_(u"Expand macros"),
)
class IRenderZPTPage(Interface):