diff options
| author | bwarsaw | 2006-07-08 17:37:55 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-08 17:37:55 +0000 |
| commit | cbef3114de3e80b9436d909b11568858e3a1cf42 (patch) | |
| tree | f567fe3fbc331fe399b92e93f80068e8995a7821 /Mailman/i18n.py | |
| parent | 60b723291e592ff7925e1b15b79161d1cdac5938 (diff) | |
| download | mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.tar.gz mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.tar.zst mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.zip | |
Diffstat (limited to 'Mailman/i18n.py')
| -rw-r--r-- | Mailman/i18n.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py index 7d36e22d3..69f9801d1 100644 --- a/Mailman/i18n.py +++ b/Mailman/i18n.py @@ -20,8 +20,8 @@ import time import string import gettext -from Mailman import mm_cfg from Mailman.SafeDict import SafeDict +from Mailman.configuration import config _translation = None _missing = object() @@ -47,7 +47,7 @@ def set_language(language=None): if language is not None: language = [language] try: - _translation = gettext.translation('mailman', mm_cfg.MESSAGES_DIR, + _translation = gettext.translation('mailman', config.MESSAGES_DIR, language) except IOError: # The selected language was not installed in messages, so fall back to @@ -67,7 +67,7 @@ def set_translation(translation): # Set up the global translation based on environment variables. Mostly used # for command line scripts. if _translation is None: - set_language() + _translation = gettext.NullTranslations() |
