[Zope3-checkins] CVS: Zope3/src/zope/app/translation_files -
extract.py:1.5 zope.pot:1.10
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Aug 9 08:47:50 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/translation_files
In directory cvs.zope.org:/tmp/cvs-serv21138
Modified Files:
extract.py zope.pot
Log Message:
- Fixed bugs in extract.py that would
1. display the extractor's home directory for site.zcml.
2. extract strings for pygettext.py.
3. make header output more sensible.
- Added full license to zope.pot
- Updated PO file headers
- Updated German translation
- Compiled all PO files to MO files again.
=== Zope3/src/zope/app/translation_files/extract.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/translation_files/extract.py:1.4 Tue Aug 5 09:48:54 2003
+++ Zope3/src/zope/app/translation_files/extract.py Sat Aug 9 07:47:14 2003
@@ -27,21 +27,31 @@
__meta_class__ = type
pot_header = '''\
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR ORGANIZATION
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+##############################################################################
#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\\n"
+"Project-Id-Version: %(version)s\\n"
"POT-Creation-Date: %(time)s\\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\\n"
-"Language-Team: LANGUAGE <LL at li.org>\\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=CHARSET\\n"
"Content-Transfer-Encoding: ENCODING\\n"
-"Generated-By: Zope 3 %(version)s\\n"
+"Generated-By: zope/app/translation_files/extract.py\\n"
+
'''
class POTEntry:
@@ -88,10 +98,19 @@
self.catalog[msgid].addLocationComment(filename, lineno)
+ def _getZopeVersion(self):
+ import zope
+ fn = os.path.join(os.path.dirname(zope.__file__), 'version.txt')
+ if os.path.exists(fn):
+ return open(fn, 'r').read()
+ else:
+ return 'Zope 3 (unknown version)'
+
def write(self):
+
file = open(self._output_filename, 'w')
file.write(pot_header % {'time': time.ctime(),
- 'version': '0.1'})
+ 'version': self._getZopeVersion()})
# Sort the catalog entries by filename
catalog = self.catalog.values()
@@ -234,7 +253,8 @@
"""Retrieve all Python messages from dir that are in the domain."""
eater = TokenEater()
make_escapes(0)
- for filename in find_files(dir, '*.py', exclude=('extract.py',)):
+ for filename in find_files(dir, '*.py',
+ exclude=('extract.py', 'pygettext.py')):
fp = open(filename)
try:
eater.set_filename(filename)
@@ -294,7 +314,7 @@
dir = app_dir()
# Wehn generating the comments, we will not need the base directory info,
# since it is specific to everyone's installation
- base_dir = dir.replace('zope/app', '')
+ base_dir = dir.replace('src/zope/app', '')
maker = POTMaker('zope.pot')
maker.add(py_strings(dir), base_dir)
=== Zope3/src/zope/app/translation_files/zope.pot 1.9 => 1.10 === (4221/4621 lines abridged)
--- Zope3/src/zope/app/translation_files/zope.pot:1.9 Fri Aug 8 08:13:13 2003
+++ Zope3/src/zope/app/translation_files/zope.pot Sat Aug 9 07:47:14 2003
@@ -1,3427 +1,3395 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR ORGANIZATION
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+##############################################################################
#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: Fri Aug 8 13:54:52 2003\n"
+"Project-Id-Version: Zope X3 Pre-M4\n"
+"POT-Creation-Date: Sat Aug 9 07:29:41 2003\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
-"Generated-By: Zope 3 0.1\n"
-#: /cygdrive/c/Zope3/site.zcml:8
+"Generated-By: zope/app/translation_files/extract.py\n"
+
+#: site.zcml:8
msgid "Site Manager"
msgstr ""
-#: /cygdrive/c/Zope3/site.zcml:9
+#: site.zcml:9
msgid "Site Member"
msgstr ""
-#: zope/app/browser/absoluteurl.py:25
+#: src/zope/app/browser/absoluteurl.py:25
msgid "There isn't enough context to get URL information. This is probably due to a bug in setting up context wrappers."
msgstr ""
-#: zope/app/browser/applicationcontrol/configure.zcml:14
+#: src/zope/app/browser/applicationcontrol/configure.zcml:14
msgid "Runtime Information"
msgstr ""
-#: zope/app/browser/applicationcontrol/configure.zcml:23
+#: src/zope/app/browser/applicationcontrol/configure.zcml:23
msgid "ZODB Control"
msgstr ""
-#: zope/app/browser/applicationcontrol/configure.zcml:9
+#: src/zope/app/browser/applicationcontrol/configure.zcml:9
msgid "Server Control"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:10
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:10
msgid "Zope version:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:14
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:14
msgid "Python version:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:18
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:18
msgid "System platform:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:22
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:22
msgid "Command line:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:26
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:26
msgid "Process id:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:3
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:3
msgid "Zope Runtime Information"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:30
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:30
msgid "Uptime:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.pt:34
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.pt:34
msgid "Python path:"
msgstr ""
-#: zope/app/browser/applicationcontrol/runtimeinfo.py:52
+#: src/zope/app/browser/applicationcontrol/runtimeinfo.py:52
msgid "${days} day(s) ${hours}:${minutes}:${seconds}"
msgstr ""
-#: zope/app/browser/applicationcontrol/server-control.pt:11
+#: src/zope/app/browser/applicationcontrol/server-control.pt:11
msgid "Shutdown server"
msgstr ""
-#: zope/app/browser/applicationcontrol/server-control.pt:3
+#: src/zope/app/browser/applicationcontrol/server-control.pt:3
msgid "Zope Stub Server Controller"
msgstr ""
-#: zope/app/browser/applicationcontrol/server-control.pt:9
+#: src/zope/app/browser/applicationcontrol/server-control.pt:9
msgid "Restart server"
msgstr ""
-#: zope/app/browser/applicationcontrol/servercontrol.py:36
+#: src/zope/app/browser/applicationcontrol/servercontrol.py:36
msgid "You restarted the server."
msgstr ""
-#: zope/app/browser/applicationcontrol/servercontrol.py:39
+#: src/zope/app/browser/applicationcontrol/servercontrol.py:39
msgid "You shut down the server."
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.pt:19
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.pt:19
msgid "Keep up to:"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.pt:21
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.pt:21
msgid "days"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.pt:26
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.pt:26
msgid "pack-button"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.pt:3
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.pt:3
msgid "ZODB Controller"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.pt:9
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.pt:9
msgid "Size of file: ${size}"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.py:32
-#: zope/app/size.py:52
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.py:31
+#: src/zope/app/size.py:52
msgid "${size} MB"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.py:35
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.py:34
msgid "${size} kB"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.py:38
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.py:37
msgid "${size} Bytes"
msgstr ""
-#: zope/app/browser/applicationcontrol/zodbcontrol.py:53
+#: src/zope/app/browser/applicationcontrol/zodbcontrol.py:52
msgid "ZODB successfully packed."
msgstr ""
-#: zope/app/browser/cache/cacheable.py:60
+#: src/zope/app/browser/cache/cacheable.py:60
msgid "Invalidated."
msgstr ""
-#: zope/app/browser/cache/cacheable.py:62
+#: src/zope/app/browser/cache/cacheable.py:62
msgid "No cache associated with object."
msgstr ""
-#: zope/app/browser/cache/cacheable.py:73
+#: src/zope/app/browser/cache/cacheable.py:73
msgid "Saved changes."
msgstr ""
-#: zope/app/browser/cache/cacheableedit.pt:15
+#: src/zope/app/browser/cache/cacheableedit.pt:15
msgid "Currently the object uses ${cache_id_or_url}."
[-=- -=- -=- 4221 lines omitted -=- -=- -=-]
-msgid "Manage executable code, including Python, SQL, ZPT, etc."
+#: src/zope/app/security/configure.zcml:26
+msgid "Manage Code"
msgstr ""
-#: zope/app/security/configure.zcml:31
+#: src/zope/app/security/configure.zcml:31
msgid "Manage Services"
msgstr ""
-#: zope/app/security/configure.zcml:35
+#: src/zope/app/security/configure.zcml:35
msgid "Manage the Zope Application, such as Restart/Shutdown or packing the ZODB."
msgstr ""
-#: zope/app/security/configure.zcml:35
+#: src/zope/app/security/configure.zcml:35
msgid "Manage Application"
msgstr ""
-#: zope/app/services/configure.zcml:109
+#: src/zope/app/services/configure.zcml:109
msgid "Page Template"
msgstr ""
-#: zope/app/services/configure.zcml:109
-#: zope/app/browser/services/configure.zcml:178
-#: zope/app/browser/services/configure.zcml:185
+#: src/zope/app/services/configure.zcml:109
+#: src/zope/app/browser/services/configure.zcml:178
+#: src/zope/app/browser/services/configure.zcml:185
msgid "ZPT Template"
msgstr ""
-#: zope/app/services/configure.zcml:289
-#: zope/app/browser/services/registration/editregistration.pt:10
+#: src/zope/app/services/configure.zcml:289
+#: src/zope/app/browser/services/registration/editregistration.pt:10
msgid "Registration Manager"
msgstr ""
-#: zope/app/services/pagefolder.zcml:10
+#: src/zope/app/services/pagefolder.zcml:10
msgid "View Folder"
msgstr ""
-#: zope/app/services/view.py:250
-#: zope/app/services/view.py:295
+#: src/zope/app/services/view.py:250
+#: src/zope/app/services/view.py:295
msgid "(Anything)"
msgstr ""
-#: zope/app/services/view.py:253
+#: src/zope/app/services/view.py:253
msgid "${view_name} ${ptype} View for {iface_name}"
msgstr ""
-#: zope/app/services/view.py:255
+#: src/zope/app/services/view.py:255
msgid "${view_name} ${ptype} View for {iface_name} in layer ${layer}"
msgstr ""
-#: zope/app/services/view.py:266
+#: src/zope/app/services/view.py:266
msgid "Registered by ZCML"
msgstr ""
-#: zope/app/services/view.py:274
-#: zope/app/security/configure.zcml:10
+#: src/zope/app/services/view.py:274
+#: src/zope/app/security/configure.zcml:10
msgid "View"
msgstr ""
-#: zope/app/services/view.py:300
+#: src/zope/app/services/view.py:300
msgid "${view_name} for ${pname} {what} {iface_name}"
msgstr ""
-#: zope/app/services/view.py:302
+#: src/zope/app/services/view.py:302
msgid "${view_name} for ${pname} {what} {iface_name} in layer ${layer}"
msgstr ""
-#: zope/app/services/view.py:319
+#: src/zope/app/services/view.py:319
msgid "Page"
msgstr ""
-#: zope/app/size.py:44
+#: src/zope/app/size.py:44
msgid "n/a"
msgstr ""
-#: zope/app/size.py:48
+#: src/zope/app/size.py:48
msgid "0 KB"
msgstr ""
-#: zope/app/size.py:50
+#: src/zope/app/size.py:50
msgid "1 KB"
msgstr ""
-#: zope/app/size.py:55
+#: src/zope/app/size.py:55
msgid "${size} KB"
msgstr ""
-#: zope/app/translation_files/pygettext.py:165
-msgid ""
-"# SOME DESCRIPTIVE TITLE.\n"
-"# Copyright (C) YEAR ORGANIZATION\n"
-"# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.\n"
-"#\n"
-"msgid \"\"\n"
-"msgstr \"\"\n"
-"\"Project-Id-Version: PACKAGE VERSION\\n\"\n"
-"\"POT-Creation-Date: %(time)s\\n\"\n"
-"\"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n\"\n"
-"\"Last-Translator: FULL NAME <EMAIL at ADDRESS>\\n\"\n"
-"\"Language-Team: LANGUAGE <LL at li.org>\\n\"\n"
-"\"MIME-Version: 1.0\\n\"\n"
-"\"Content-Type: text/plain; charset=CHARSET\\n\"\n"
-"\"Content-Transfer-Encoding: ENCODING\\n\"\n"
-"\"Generated-By: pygettext.py %(version)s\\n\"\n"
-"\n"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:366
-msgid "# File: %(filename)s, line: %(lineno)d"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:374
-msgid " %(filename)s:%(lineno)d"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:451
-msgid "Invalid value for --style: %s"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:459
-msgid "pygettext.py (xgettext for Python) %s"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:465
-msgid "--width argument must be an integer: %s"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:492
-msgid "Can't read --exclude-file: %s"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:503
-msgid "Reading standard input"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:508
-msgid "Working on %s"
-msgstr ""
-
-#: zope/app/translation_files/pygettext.py:541
-msgid "a unicode string"
+#: src/zope/app/utilities/configure.zcml:8
+#: src/zope/app/utilities/configure.zcml:31
+#: src/zope/app/utilities/configure.zcml:41
+msgid "Persistent Schema Utility"
msgstr ""
-#: zope/app/utilities/configure.zcml:8
-#: zope/app/utilities/configure.zcml:31
-#: zope/app/utilities/configure.zcml:41
+#: src/zope/app/utilities/configure.zcml:8
+#: src/zope/app/utilities/configure.zcml:31
+#: src/zope/app/utilities/configure.zcml:41
msgid "A Persistent Schema that can be edited through the web"
msgstr ""
-#: zope/app/utilities/configure.zcml:8
-#: zope/app/utilities/configure.zcml:31
-#: zope/app/utilities/configure.zcml:41
-msgid "Persistent Schema Utility"
-msgstr ""
-
-#: zope/app/workflow/configure.zcml:13
+#: src/zope/app/workflow/configure.zcml:13
msgid "Create Workflow ProcessInstances"
msgstr ""
-#: zope/app/workflow/configure.zcml:17
+#: src/zope/app/workflow/configure.zcml:17
msgid "Use Workflow ProcessInstances"
msgstr ""
-#: zope/app/workflow/configure.zcml:9
+#: src/zope/app/workflow/configure.zcml:9
msgid "Manage Workflow ProcessDefinitions"
msgstr ""
More information about the Zope3-Checkins
mailing list