aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rwxr-xr-xMailman/ListAdmin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 4a188057..af579331 100755
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -390,6 +390,7 @@ class ListAdmin:
self.internal_name(), addr)
# Possibly notify the administrator in default list language
if self.admin_immed_notify:
+ i18n.set_language(self.preferred_language)
realname = self.real_name
subject = _(
'New subscription request to list %(realname)s from %(addr)s')
@@ -406,6 +407,8 @@ class ListAdmin:
msg = Message.UserNotification(owneraddr, owneraddr, subject, text,
self.preferred_language)
msg.send(self, **{'tomoderators': 1})
+ # Restore the user's preferred language.
+ i18n.set_language(lang)
def __handlesubscription(self, record, value, comment):
stime, addr, fullname, password, digest, lang = record