diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-05-07 09:53:30 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-05-07 09:53:30 +0900 |
commit | a4d68f6e3632c2dc2883ed3cd230e74bf04f5013 (patch) | |
tree | f34dcd7a44be1b53e966f34ce06a38c81a17c659 /Mailman/Archiver/HyperArch.py | |
parent | 0473ee6cb1997fb1a9f480dd9c929120b36d4e33 (diff) | |
parent | 86c1771a9cc63404ed1e258bbed6920021140eae (diff) | |
download | mailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.tar.gz mailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.tar.xz mailman2-a4d68f6e3632c2dc2883ed3cd230e74bf04f5013.zip |
merge lp:mailman/2.1 up to 1753
Diffstat (limited to 'Mailman/Archiver/HyperArch.py')
-rw-r--r-- | Mailman/Archiver/HyperArch.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py index 0c0e3356..1b0cdce5 100644 --- a/Mailman/Archiver/HyperArch.py +++ b/Mailman/Archiver/HyperArch.py @@ -56,6 +56,7 @@ from Mailman.Mailbox import ArchiverMailbox # Set up i18n. Assume the current language has already been set in the caller. _ = i18n._ +C_ = i18n.C_ gzip = None if mm_cfg.GZIP_ARCHIVE_TXT_FILES: @@ -912,7 +913,7 @@ class HyperArchive(pipermail.T): A string can be returned if the list only contains one entry, and the empty list is legal.""" res = self.dateToVolName(float(article.date)) - self.message(_("figuring article archives\n")) + self.message(C_("figuring article archives\n")) self.message(res + "\n") return res @@ -1050,7 +1051,7 @@ class HyperArchive(pipermail.T): self.depth=0 print self.html_head() if not self.THREADLAZY and self.type=='Thread': - self.message(_("Computing threaded index\n")) + self.message(C_("Computing threaded index\n")) self.updateThreadedIndex() def write_index_footer(self): @@ -1315,14 +1316,14 @@ class HyperArchive(pipermail.T): def update_article(self, arcdir, article, prev, next): seq = article.sequence filename = os.path.join(arcdir, article.filename) - self.message(_('Updating HTML for article %(seq)s')) + self.message(C_('Updating HTML for article %(seq)s')) try: f = open(filename) article.loadbody_fromHTML(f) f.close() except IOError, e: if e.errno <> errno.ENOENT: raise - self.message(_('article file %(filename)s is missing!')) + self.message(C_('article file %(filename)s is missing!')) article.prev = prev article.next = next omask = os.umask(002) |