[Checkins] SVN: zope.i18n/trunk/ Changed the name of the env
variable, so it can be set inside zope.conf
Hanno Schlichting
plone at hannosch.info
Sat Apr 26 07:45:08 EDT 2008
Log message for revision 85761:
Changed the name of the env variable, so it can be set inside zope.conf
Changed:
U zope.i18n/trunk/CHANGES.txt
U zope.i18n/trunk/src/zope/i18n/zcml.py
-=-
Modified: zope.i18n/trunk/CHANGES.txt
===================================================================
--- zope.i18n/trunk/CHANGES.txt 2008-04-26 11:10:36 UTC (rev 85760)
+++ zope.i18n/trunk/CHANGES.txt 2008-04-26 11:45:07 UTC (rev 85761)
@@ -7,7 +7,7 @@
- Feature: Added optional automatic compilation of mo files from po files.
You need to depend on the `zope.i18n [compile]` extra and set an environment
- variable called `zope.i18n.compile_mo_files` to any True value to enable
+ variable called `zope_i18n_compile_mo_files` to any True value to enable
this option.
- Feature: Re-use existing translation domains when registering new ones.
Modified: zope.i18n/trunk/src/zope/i18n/zcml.py
===================================================================
--- zope.i18n/trunk/src/zope/i18n/zcml.py 2008-04-26 11:10:36 UTC (rev 85760)
+++ zope.i18n/trunk/src/zope/i18n/zcml.py 2008-04-26 11:45:07 UTC (rev 85761)
@@ -30,7 +30,7 @@
from zope.component import queryUtility
from zope.component.zcml import utility
-COMPILE_MO_FILES_KEY = 'zope.i18n.compile_mo_files'
+COMPILE_MO_FILES_KEY = 'zope_i18n_compile_mo_files'
COMPILE_MO_FILES = os.environ.get(COMPILE_MO_FILES_KEY, False)
@@ -55,6 +55,7 @@
if os.path.isdir(lc_messages_path):
# Preprocess files and update or compile the mo files
if COMPILE_MO_FILES:
+ import pdb; pdb.set_trace()
for domain_file in os.listdir(lc_messages_path):
if domain_file.endswith('.po'):
domain = domain_file[:-3]
More information about the Checkins
mailing list