summaryrefslogtreecommitdiff
path: root/src/mailman/app/replybot.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-12 20:36:21 -0500
committerBarry Warsaw2009-02-12 20:36:21 -0500
commit62f4c909f90535986614a411db982bdcccaec3a1 (patch)
tree2fe5dd3316cea73f63cb34230d848758050eade3 /src/mailman/app/replybot.py
parent2b28803e7165e91d812cd9e9e3804a6d9bdce8a1 (diff)
downloadmailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.gz
mailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.zst
mailman-62f4c909f90535986614a411db982bdcccaec3a1.zip
Much clean up of the language code, though more can be done. Factor out the
language manager stuff into a separate Language class, and be clearer in the APIs about whether we want a language code or a Language instance. The impetus to this was to get rid of Utils.GetCharSet(), which is done.
Diffstat (limited to 'src/mailman/app/replybot.py')
-rw-r--r--src/mailman/app/replybot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/app/replybot.py b/src/mailman/app/replybot.py
index 0537f6645..b558e96aa 100644
--- a/src/mailman/app/replybot.py
+++ b/src/mailman/app/replybot.py
@@ -80,7 +80,7 @@ def autorespond_to_sender(mlist, sender, lang=None):
'owneremail': mlist.owner_address,
},
lang=lang)
- with i18n.using_language(lang):
+ with i18n.using_language(lang.code):
msg = Message.UserNotification(
sender, mlist.owner_address,
_('Last autoresponse notification for today'),