diff options
Diffstat (limited to 'Mailman/i18n.py')
| -rw-r--r-- | Mailman/i18n.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py index f2978f986..2dcacadc9 100644 --- a/Mailman/i18n.py +++ b/Mailman/i18n.py @@ -34,6 +34,15 @@ def set_language(language): # untranslated English. _translation = gettext.NullTranslations() + +def get_translation(): + return _translation + +def set_translation(translation): + global _translation + _translation = translation + + def _x(s, frame): # Do translation of the given string into the current language, and do |
