[Checkins] SVN: zope.i18n/trunk/src/zope/i18n/compile.py Log a warning message before returning; libraries that depend on this method typically don't consider that it might fail silently.
Malthe Borch
mborch at gmail.com
Tue May 12 07:23:06 EDT 2009
Log message for revision 99870:
Log a warning message before returning; libraries that depend on this method typically don't consider that it might fail silently.
Changed:
U zope.i18n/trunk/src/zope/i18n/compile.py
-=-
Modified: zope.i18n/trunk/src/zope/i18n/compile.py
===================================================================
--- zope.i18n/trunk/src/zope/i18n/compile.py 2009-05-12 10:50:04 UTC (rev 99869)
+++ zope.i18n/trunk/src/zope/i18n/compile.py 2009-05-12 11:23:06 UTC (rev 99870)
@@ -16,6 +16,7 @@
def compile_mo_file(domain, lc_messages_path):
"""Creates or updates a mo file in the locales folder."""
if not HAS_PYTHON_GETTEXT:
+ logger.warn("Unable to compile messages: Python `gettext` library missing.")
return
base = join(lc_messages_path, domain)
More information about the Checkins
mailing list