diff options
| author | bwarsaw | 2001-02-28 06:28:48 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-02-28 06:28:48 +0000 |
| commit | 18a5941e65a15fc45dce7c565e2555079666632b (patch) | |
| tree | ac7c674ae3e4c1694752c2a3b9f156201a13fe74 /Mailman/i18n.py | |
| parent | 535b2977e1edab5fe2fc79965056b008bd692f9a (diff) | |
| download | mailman-18a5941e65a15fc45dce7c565e2555079666632b.tar.gz mailman-18a5941e65a15fc45dce7c565e2555079666632b.tar.zst mailman-18a5941e65a15fc45dce7c565e2555079666632b.zip | |
Diffstat (limited to 'Mailman/i18n.py')
| -rw-r--r-- | Mailman/i18n.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py index ef4928989..f2978f986 100644 --- a/Mailman/i18n.py +++ b/Mailman/i18n.py @@ -26,8 +26,13 @@ _translation = gettext.NullTranslations() def set_language(language): global _translation - _translation = gettext.translation('mailman', mm_cfg.LOCALEDIR, [language]) - + try: + _translation = gettext.translation('mailman', mm_cfg.MESSAGES_DIR, + [language]) + except IOError: + # The selected language was not installed in messages, so fall back to + # untranslated English. + _translation = gettext.NullTranslations() def _x(s, frame): |
