diff options
| author | bwarsaw | 2002-02-27 00:06:51 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-02-27 00:06:51 +0000 |
| commit | c0790a291e75737835035ad0960651acf4022e66 (patch) | |
| tree | 9aa7cb98f62b41c3fc38f40e24ac8c155a0b359f /Mailman/Gui/Language.py | |
| parent | 28bfdaeacdfb79a062ab5979a7180702d03d8709 (diff) | |
| download | mailman-c0790a291e75737835035ad0960651acf4022e66.tar.gz mailman-c0790a291e75737835035ad0960651acf4022e66.tar.zst mailman-c0790a291e75737835035ad0960651acf4022e66.zip | |
Diffstat (limited to 'Mailman/Gui/Language.py')
| -rw-r--r-- | Mailman/Gui/Language.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Mailman/Gui/Language.py b/Mailman/Gui/Language.py index 42245dff8..00fff1470 100644 --- a/Mailman/Gui/Language.py +++ b/Mailman/Gui/Language.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001 by the Free Software Foundation, Inc. +# Copyright (C) 2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -19,12 +19,15 @@ from Mailman import mm_cfg from Mailman import Utils -from Mailman.i18n import _ +from Mailman import i18n from Mailman.Logging.Syslog import syslog +from Mailman.Gui.GUIBase import GUIBase + +_ = i18n._ -class Language: +class Language(GUIBase): def GetConfigCategory(self): return 'language', _('Language options') @@ -71,3 +74,10 @@ class Language: language</a> must be included.''')), ] + + def _setValue(self, mlist, property, val, doc): + # If we're changing the list's preferred language, change the I18N + # context as well + if property == 'preferred_language': + i18n.set_language(val) + GUIBase._setValue(self, mlist, property, val, doc) |
