diff options
| author | bwarsaw | 2007-03-21 14:11:53 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-03-21 14:11:53 +0000 |
| commit | fc51f4c9de9751c03fb21394b393253e8c225453 (patch) | |
| tree | a931a2a61e156ca8332a92d6369163741f8e506d /Mailman/Handlers/Hold.py | |
| parent | cf950f7430ecabc8d4ff370c4f9e6e01f7b44fd4 (diff) | |
| download | mailman-fc51f4c9de9751c03fb21394b393253e8c225453.tar.gz mailman-fc51f4c9de9751c03fb21394b393253e8c225453.tar.zst mailman-fc51f4c9de9751c03fb21394b393253e8c225453.zip | |
Diffstat (limited to 'Mailman/Handlers/Hold.py')
| -rw-r--r-- | Mailman/Handlers/Hold.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py index 180b6fd70..d13babba6 100644 --- a/Mailman/Handlers/Hold.py +++ b/Mailman/Handlers/Hold.py @@ -49,6 +49,8 @@ log = logging.getLogger('mailman.vette') def _(s): return s +__i18n_templates__ = True + class ForbiddenPoster(Errors.HoldMessage): @@ -84,8 +86,8 @@ class Administrivia(Errors.HoldMessage): listurl = mlist.GetScriptURL('listinfo', absolute=1) request = mlist.GetRequestEmail() return _("""Please do *not* post administrative requests to the mailing -list. If you wish to subscribe, visit %(listurl)s or send a message with the -word `help' in it to the request address, %(request)s, for further +list. If you wish to subscribe, visit $listurl or send a message with the +word `help' in it to the request address, $request, for further instructions.""") class SuspiciousHeaders(Errors.HoldMessage): @@ -100,13 +102,13 @@ class MessageTooBig(Errors.HoldMessage): def reason_notice(self): size = self.__msgsize limit = self.__limit - return _('''Message body is too big: %(size)d bytes with a limit of -%(limit)d KB''') + return _('''Message body is too big: $size bytes with a limit of +$limit KB''') def rejection_notice(self, mlist): kb = self.__limit return _('''Your message was too big; please trim it to less than -%(kb)d KB in size.''') +$kb KB in size.''') class ModeratedNewsgroup(ModeratedPost): reason = _('Posting to a moderated newsgroup') @@ -244,7 +246,7 @@ def hold_for_approval(mlist, msg, msgdata, exc): d['confirmurl'] = '%s/%s' % (mlist.GetScriptURL('confirm', absolute=1), cookie) lang = msgdata.get('lang', mlist.getMemberLanguage(sender)) - subject = _('Your message to %(listname)s awaits moderator approval') + subject = _('Your message to $listname awaits moderator approval') text = Utils.maketext('postheld.txt', d, lang=lang, mlist=mlist) nmsg = Message.UserNotification(sender, adminaddr, subject, text, lang) nmsg.send(mlist) @@ -263,7 +265,7 @@ def hold_for_approval(mlist, msg, msgdata, exc): d['reason'] = _(reason) d['subject'] = usersubject # craft the admin notification message and deliver it - subject = _('%(listname)s post from %(sender)s requires approval') + subject = _('$listname post from $sender requires approval') nmsg = Message.UserNotification(owneraddr, owneraddr, subject, lang=lang) nmsg.set_type('multipart/mixed') |
