Skip to content

Commit 486c51c

Browse files
committed
update
1 parent 52c8980 commit 486c51c

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

Mailman/Bouncer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def sendNextNotification(self, member):
327327
# BAW: See the comment in MailList.py ChangeMemberAddress() for why we
328328
# set the Subject this way.
329329
del msg['subject']
330-
msg['Subject'] = 'confirm ' + info.cookie
330+
msg['Subject'] = _('confirm %(cookie)s') % {'cookie': info.cookie}
331331
# Send without Precedence: bulk. Bug #808821.
332332
msg.send(self, noprecedence=True)
333333
info.noticesleft -= 1

Mailman/Handlers/Hold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def hold_for_approval(mlist, msg, msgdata, exc):
289289
d['confirmurl'] = '%s/%s' % (mlist.GetScriptURL('confirm', absolute=1),
290290
cookie)
291291
lang = msgdata.get('lang', mlist.getMemberLanguage(sender))
292-
subject = _('Your message to %(listname)s awaits moderator approval')
292+
subject = _('Your message to %(listname)s awaits moderator approval') % {'listname': listname}
293293
text = Utils.maketext('postheld.txt', d, lang=lang, mlist=mlist)
294294
nmsg = UserNotification(sender, owneraddr, subject, text, lang)
295295
nmsg.send(mlist)

Mailman/Handlers/ToDigest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ def send_digests(mlist, mboxpath):
228228
# Set up the digest state
229229
volume = mlist.volume
230230
issue = mlist.next_digest_number
231-
digestid = _('%(realname)s Digest, Vol %(volume)d, Issue %(issue)d')
231+
digestid = _('%(realname)s Digest, Vol %(volume)d, Issue %(issue)d') % {
232+
'realname': mlist.real_name,
233+
'volume': volume,
234+
'issue': issue
235+
}
232236

233237
# Get the list's preferred language and charset
234238
lang = mlist.preferred_language

Mailman/MailList.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def GetConfirmJoinSubject(self, listname, cookie):
248248
cset = i18n.get_translation().charset() or \
249249
Utils.GetCharSet(self.preferred_language)
250250
subj = Header(
251-
_('Your confirmation is required to join the %(listname)s mailing list'),
251+
_('Your confirmation is required to join the %(listname)s mailing list') % {'listname': listname},
252252
cset, header_name='subject')
253253
return subj
254254
else:
@@ -259,7 +259,7 @@ def GetConfirmLeaveSubject(self, listname, cookie):
259259
cset = i18n.get_translation().charset() or \
260260
Utils.GetCharSet(self.preferred_language)
261261
subj = Header(
262-
_('Your confirmation is required to leave the %(listname)s mailing list'),
262+
_('Your confirmation is required to leave the %(listname)s mailing list') % {'listname': listname},
263263
cset, header_name='subject')
264264
return subj
265265
else:

cron/checkdbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ def pending_requests(mlist):
191191
pending.append(_("""\
192192
From: %(sender)s on %(date)s
193193
Subject: %(subject)s
194-
Cause: %(reason)s"""))
194+
Cause: %(reason)s""") % {
195+
'sender': sender,
196+
'date': date,
197+
'subject': subject,
198+
'reason': reason
199+
})
195200
pending.append('')
196201
except Exception as e:
197202
mailman_log('error', 'Error processing held message record %d: %s\n%s',

0 commit comments

Comments
 (0)