diff options
| author | bwarsaw | 2001-03-02 00:51:28 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-03-02 00:51:28 +0000 |
| commit | e7c8d8e5893b38d248a99a2bc915737b2a5488fa (patch) | |
| tree | 6d7c8a2fe97c0e6007893458cdcefcc211805605 /Mailman/i18n.py | |
| parent | eb50f20ee6c4722b3e05366fa7c6ff7d0451bd79 (diff) | |
| download | mailman-e7c8d8e5893b38d248a99a2bc915737b2a5488fa.tar.gz mailman-e7c8d8e5893b38d248a99a2bc915737b2a5488fa.tar.zst mailman-e7c8d8e5893b38d248a99a2bc915737b2a5488fa.zip | |
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 |
