diff options
| author | bwarsaw | 2006-09-25 00:01:06 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-09-25 00:01:06 +0000 |
| commit | 8157935353a960cd03a72e403e8638b016c8e9a1 (patch) | |
| tree | 00e219530cab575a9d2ec76ee9c90523d14a5275 /Mailman/MTA/Manual.py | |
| parent | 99a4f0ef16e6dfddafbd396896afb97821528f16 (diff) | |
| download | mailman-8157935353a960cd03a72e403e8638b016c8e9a1.tar.gz mailman-8157935353a960cd03a72e403e8638b016c8e9a1.tar.zst mailman-8157935353a960cd03a72e403e8638b016c8e9a1.zip | |
Diffstat (limited to 'Mailman/MTA/Manual.py')
| -rw-r--r-- | Mailman/MTA/Manual.py | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/Mailman/MTA/Manual.py b/Mailman/MTA/Manual.py index d49327765..b406eab21 100644 --- a/Mailman/MTA/Manual.py +++ b/Mailman/MTA/Manual.py @@ -24,11 +24,13 @@ from cStringIO import StringIO from Mailman import Message from Mailman import Utils -from Mailman import mm_cfg from Mailman.MTA.Utils import makealiases from Mailman.Queue.sbcache import get_switchboard +from Mailman.configuration import config from Mailman.i18n import _ +__i18n_templates__ = True + # no-ops for interface compliance @@ -59,10 +61,10 @@ def create(mlist, cgi=False, nolock=False, quiet=False): sfp = StringIO() if not quiet: print >> sfp, _("""\ -The mailing list `%(listname)s' has been created via the through-the-web +The mailing list '$listname' has been created via the through-the-web interface. In order to complete the activation of this mailing list, the proper /etc/aliases (or equivalent) file must be updated. The program -`newaliases' may also have to be run. +'newaliases' may also have to be run. Here are the entries for the /etc/aliases file: """) @@ -72,10 +74,10 @@ Here are the entries for the /etc/aliases file: print _("""\ To finish creating your mailing list, you must edit your /etc/aliases (or equivalent) file by adding the following lines, and possibly running the -`newaliases' program: +'newaliases' program: """) print _("""\ -## %(listname)s mailing list""") +## $listname mailing list""") outfp = sys.stdout # Common path for k, v in makealiases(mlist): @@ -89,8 +91,8 @@ equivalent) file by adding the following lines, and possibly running the # Should this be sent in the site list's preferred language? msg = Message.UserNotification( siteowner, siteowner, - _('Mailing list creation request for list %(listname)s'), - sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE) + _('Mailing list creation request for list $listname'), + sfp.getvalue(), config.DEFAULT_SERVER_LANGUAGE) msg.send(mlist) @@ -104,10 +106,10 @@ def remove(mlist, cgi=False): # aliases be deleted. sfp = StringIO() print >> sfp, _("""\ -The mailing list `%(listname)s' has been removed via the through-the-web +The mailing list '$listname' has been removed via the through-the-web interface. In order to complete the de-activation of this mailing list, the appropriate /etc/aliases (or equivalent) file must be updated. The program -`newaliases' may also have to be run. +'newaliases' may also have to be run. Here are the entries in the /etc/aliases file that should be removed: """) @@ -116,9 +118,9 @@ Here are the entries in the /etc/aliases file that should be removed: print _(""" To finish removing your mailing list, you must edit your /etc/aliases (or equivalent) file by removing the following lines, and possibly running the -`newaliases' program: +'newaliases' program: -## %(listname)s mailing list""") +## $listname mailing list""") outfp = sys.stdout # Common path for k, v in makealiases(mlist): @@ -132,8 +134,8 @@ equivalent) file by removing the following lines, and possibly running the # Should this be sent in the site list's preferred language? msg = Message.UserNotification( siteowner, siteowner, - _('Mailing list removal request for list %(listname)s'), - sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE) - msg['Date'] = email.Utils.formatdate(localtime=1) - outq = get_switchboard(mm_cfg.OUTQUEUE_DIR) - outq.enqueue(msg, recips=[siteowner], nodecorate=1) + _('Mailing list removal request for list $listname'), + sfp.getvalue(), config.DEFAULT_SERVER_LANGUAGE) + msg['Date'] = email.Utils.formatdate(localtime=True) + outq = get_switchboard(config.OUTQUEUE_DIR) + outq.enqueue(msg, recips=[siteowner], nodecorate=True) |
