[Zope3-checkins] CVS: Zope3/src/zope/app - configure.zcml:1.15
Jim Fulton
jim@zope.com
Thu, 3 Apr 2003 11:19:03 -0500
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv26474/src/zope/app
Modified Files:
configure.zcml
Log Message:
Changed the handling of program source translations
- The translation files for the application server (zope.app) are now
al in one place, src/zope/app/translation_files.
- Added an extraction tool, extract.py that extracts all translatable
strings from Python and zpt source files into a translation template
file, zope.pot. This template file should then be merged into
individual translation files.
To do:
- zcml extraction
- I don't think that encodings are handled correctly. The template
file certainly doesn't have the encoding set correctly.
=== Zope3/src/zope/app/configure.zcml 1.14 => 1.15 ===
--- Zope3/src/zope/app/configure.zcml:1.14 Mon Mar 31 09:48:39 2003
+++ Zope3/src/zope/app/configure.zcml Thu Apr 3 11:18:33 2003
@@ -1,4 +1,6 @@
-<zopeConfigure xmlns='http://namespaces.zope.org/zope'>
+<zopeConfigure xmlns='http://namespaces.zope.org/zope'
+ xmlns:global_translation="http://namespaces.zope.org/gts"
+ >
<!-- Meta configuration (new directives) -->
@@ -109,8 +111,8 @@
<include package="zope.app.xmlrpc" />
<include package="zope.app.http" />
-<!-- Interfaces, mainly to get their translations configured -->
- <include package=".interfaces" />
+<!-- Translations -->
+ <global_translation:registerTranslations directory="translation_files" />
</zopeConfigure>