aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Archiver/pipermail.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-05-07 09:53:30 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-05-07 09:53:30 +0900
commita4d68f6e3632c2dc2883ed3cd230e74bf04f5013 (patch)
treef34dcd7a44be1b53e966f34ce06a38c81a17c659 /Mailman/Archiver/pipermail.py
parent0473ee6cb1997fb1a9f480dd9c929120b36d4e33 (diff)
parent86c1771a9cc63404ed1e258bbed6920021140eae (diff)
downloadmailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.tar.gz
mailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.tar.xz
mailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.zip
merge lp:mailman/2.1 up to 1753
Diffstat (limited to 'Mailman/Archiver/pipermail.py')
-rw-r--r--Mailman/Archiver/pipermail.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py
index 9b0813b0..62fb92e8 100644
--- a/Mailman/Archiver/pipermail.py
+++ b/Mailman/Archiver/pipermail.py
@@ -20,7 +20,7 @@ from Mailman import mm_cfg
from Mailman import Errors
from Mailman.Mailbox import ArchiverMailbox
from Mailman.Logging.Syslog import syslog
-from Mailman.i18n import _
+from Mailman.i18n import _, C_
# True/False
try:
@@ -295,7 +295,7 @@ class T:
if errno != 2:
raise os.error, errdata
else:
- self.message(_('Creating archive directory ') + self.basedir)
+ self.message(C_('Creating archive directory ') + self.basedir)
omask = os.umask(0)
try:
os.mkdir(self.basedir, self.DIRMODE)
@@ -307,7 +307,7 @@ class T:
if not reload:
raise IOError
f = open(os.path.join(self.basedir, 'pipermail.pck'), 'r')
- self.message(_('Reloading pickled archive state'))
+ self.message(C_('Reloading pickled archive state'))
d = pickle.load(f)
f.close()
for key, value in d.items():
@@ -334,7 +334,7 @@ class T:
self.update_TOC = 0
self.write_TOC()
# Save the collective state
- self.message(_('Pickling archive state into ')
+ self.message(C_('Pickling archive state into ')
+ os.path.join(self.basedir, 'pipermail.pck'))
self.database.close()
del self.database
@@ -446,7 +446,7 @@ class T:
# dirtied or not.
def update_archive(self, archive):
self.archive = archive
- self.message(_("Updating index files for archive [%(archive)s]"))
+ self.message(C_("Updating index files for archive [%(archive)s]"))
arcdir = os.path.join(self.basedir, archive)
self.__set_parameters(archive)
@@ -479,7 +479,7 @@ class T:
self._restore_stdout()
def _update_thread_index(self, archive, arcdir):
- self.message(_(" Thread"))
+ self.message(C_(" Thread"))
self._open_index_file_as_stdout(arcdir, "thread")
self.type = 'Thread'
self.write_index_header()
@@ -590,7 +590,7 @@ class T:
# It was an unparseable message
continue
msgid = m.get('message-id', 'n/a')
- self.message(_('#%(counter)05d %(msgid)s'))
+ self.message(C_('#%(counter)05d %(msgid)s'))
a = self._makeArticle(m, self.sequence)
self.sequence += 1
self.add_article(a)