diff options
author | Jens W. Klein <jk@kleinundpartner.at> | 2021-12-08 00:37:48 +0100 |
---|---|---|
committer | Jens W. Klein <jk@kleinundpartner.at> | 2021-12-08 00:37:48 +0100 |
commit | dac792b2a1449c4377468d1acc1126e15f9dceec (patch) | |
tree | a1001909285fab31d8d805a09771822829b91296 /src/zope/i18n/config.py | |
parent | 825fea4b8b315b794670f2fc1cb5d8c68b92cdb4 (diff) | |
download | zope-i18n-dac792b2a1449c4377468d1acc1126e15f9dceec.tar.gz |
Fix problems with zope_i18n_compile_mo_files early assignmentfix-Zope-994-2
Diffstat (limited to 'src/zope/i18n/config.py')
-rw-r--r-- | src/zope/i18n/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zope/i18n/config.py b/src/zope/i18n/config.py index b0068c5..ce94ded 100644 --- a/src/zope/i18n/config.py +++ b/src/zope/i18n/config.py @@ -4,9 +4,10 @@ import os #: is imported to determine the value of `COMPILE_MO_FILES`. #: Simply set this to a non-empty string to make it True. COMPILE_MO_FILES_KEY = 'zope_i18n_compile_mo_files' +COMPILE_MO_FILES_UNSET = "__unset__" #: Whether or not the ZCML directives will attempt to compile #: translation files. Defaults to False. -COMPILE_MO_FILES = os.environ.get(COMPILE_MO_FILES_KEY, False) +COMPILE_MO_FILES = COMPILE_MO_FILES_UNSET #: The environment variable that is consulted when this module #: is imported to determine the value of `ALLOWED_LANGUAGES`. |