diff options
| author | bwarsaw | 2001-03-02 05:07:31 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-03-02 05:07:31 +0000 |
| commit | aeeae284875b76c41a05b6f46111d4bb81246b2d (patch) | |
| tree | c692e26f820fb233da800565bfaa18274d1a8795 | |
| parent | fc33897cb164faa18408fad68a3ffeb66535b870 (diff) | |
| download | mailman-aeeae284875b76c41a05b6f46111d4bb81246b2d.tar.gz mailman-aeeae284875b76c41a05b6f46111d4bb81246b2d.tar.zst mailman-aeeae284875b76c41a05b6f46111d4bb81246b2d.zip | |
process(), decorate(): Mark a few more strings as translatable.
| -rw-r--r-- | Mailman/Handlers/Decorate.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py index e8ec3488c..29e12384d 100644 --- a/Mailman/Handlers/Decorate.py +++ b/Mailman/Handlers/Decorate.py @@ -20,6 +20,7 @@ import mimelib.Text from Mailman import mm_cfg +from Mailman.i18n import _ from Mailman.SafeDict import SafeDict from Mailman.Logging.Syslog import syslog @@ -29,8 +30,8 @@ def process(mlist, msg, msgdata): if msgdata.get('isdigest'): # Digests already have their own header and footer return - header = decorate(mlist, mlist.msg_header, 'non-digest header') - footer = decorate(mlist, mlist.msg_footer, 'non-digest footer') + header = decorate(mlist, mlist.msg_header, _('non-digest header')) + footer = decorate(mlist, mlist.msg_footer, _('non-digest footer')) # Be MIME smart here. If the message is non-multipart, then we can just # tack the header and footers onto the message body. But if the message # is multipart, we want to add them as MIME subobjects. @@ -59,5 +60,6 @@ def decorate(mlist, template, what): except ValueError, e: syslog('error', 'Exception while calculating %s:\n%s' % (what, e)) - text = '[INVALID %s]' % what.upper() + what = what.upper() + text = _('[INVALID %(what)s]') return text |
