aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rwxr-xr-xMailman/MailList.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index cc1be3b5..abc46abd 100755
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1058,8 +1058,14 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
syslog('subscribe', '%s: new%s %s, %s', self.internal_name(),
kind, formataddr((name, email)), whence)
if ack:
- self.SendSubscribeAck(email, self.getMemberPassword(email),
- digest, text)
+ lang = self.preferred_language
+ otrans = i18n.get_translation()
+ i18n.set_language(lang)
+ try:
+ self.SendSubscribeAck(email, self.getMemberPassword(email),
+ digest, text)
+ finally:
+ i18n.set_translation(otrans)
if admin_notif:
lang = self.preferred_language
otrans = i18n.get_translation()