summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Replybot.py
diff options
context:
space:
mode:
authorbwarsaw2001-03-02 05:12:45 +0000
committerbwarsaw2001-03-02 05:12:45 +0000
commitc4675c3a4edb54f1bcd1280a9859670d5a06d42f (patch)
tree3fe2389fa5a9103de0b09d1650d6ba3c90f07775 /Mailman/Handlers/Replybot.py
parent13bdefec7b460c51f92e62955ea35c74fb105749 (diff)
downloadmailman-c4675c3a4edb54f1bcd1280a9859670d5a06d42f.tar.gz
mailman-c4675c3a4edb54f1bcd1280a9859670d5a06d42f.tar.zst
mailman-c4675c3a4edb54f1bcd1280a9859670d5a06d42f.zip
Diffstat (limited to 'Mailman/Handlers/Replybot.py')
-rw-r--r--Mailman/Handlers/Replybot.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Mailman/Handlers/Replybot.py b/Mailman/Handlers/Replybot.py
index 147ae9f32..4adc77a67 100644
--- a/Mailman/Handlers/Replybot.py
+++ b/Mailman/Handlers/Replybot.py
@@ -21,6 +21,7 @@ import time
from Mailman import Utils
from Mailman import Message
+from Mailman.i18n import _
from Mailman.SafeDict import SafeDict
NL = '\n'
@@ -62,10 +63,11 @@ def process(mlist, msg, msgdata):
#
# Okay, we know we're going to auto-respond to this sender, craft the
# message, send it, and update the database.
- subject = 'Auto-response for your message to ' + \
- msg.get('to', 'the "%s" mailing list' % mlist.real_name)
+ realname = mlist.real_name
+ subject = _('Auto-response for your message to ') + \
+ msg.get('to', _('the "%(realname)s" mailing list'))
# Do string interpolation
- d = SafeDict({'listname' : mlist.real_name,
+ d = SafeDict({'listname' : realname,
'listurl' : mlist.GetScriptURL('listinfo'),
'requestemail': mlist.GetRequestEmail(),
'adminemail' : mlist.GetAdminEmail(),
@@ -88,7 +90,7 @@ def process(mlist, msg, msgdata):
text = NL.join(lines)
outmsg = Message.UserNotification(sender, mlist.GetAdminEmail(),
subject, text)
- outmsg['X-Mailer'] = 'The Mailman Replybot '
+ outmsg['X-Mailer'] = _('The Mailman Replybot')
# prevent recursions and mail loops!
outmsg['X-Ack'] = 'No'
outmsg.send(mlist)