[PATCH 14 of 17] mark strings for translation in patchbomb extension

Martin Geisler mg at daimi.au.dk
Sat Aug 23 15:55:30 CDT 2008


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1219523218 -7200
# Node ID a496aa2e4f09d39ce92ef84c6501bdafaf191279
# Parent  83db9c632cfbfee7e91874b02d69bedc5156fd1d
mark strings for translation in patchbomb extension

diff -r 83db9c632cfb -r a496aa2e4f09 hgext/patchbomb.py
--- a/hgext/patchbomb.py	Sat Aug 23 22:26:58 2008 +0200
+++ b/hgext/patchbomb.py	Sat Aug 23 22:26:58 2008 +0200
@@ -398,7 +398,7 @@
         if bcc:
             m['Bcc'] = ', '.join(bcc)
         if opts.get('test'):
-            ui.status('Displaying ', m['Subject'], ' ...\n')
+            ui.status(_('Displaying '), m['Subject'], ' ...\n')
             ui.flush()
             if 'PAGER' in os.environ:
                 fp = util.popen(os.environ['PAGER'], 'w')
@@ -414,7 +414,7 @@
             if fp is not ui:
                 fp.close()
         elif opts.get('mbox'):
-            ui.status('Writing ', m['Subject'], ' ...\n')
+            ui.status(_('Writing '), m['Subject'], ' ...\n')
             fp = open(opts.get('mbox'), 'In-Reply-To' in m and 'ab+' or 'wb+')
             generator = email.Generator.Generator(fp, mangle_from_=True)
             date = util.datestr(start_time, '%a %b %d %H:%M:%S %Y')
@@ -425,7 +425,7 @@
         else:
             if not sendmail:
                 sendmail = mail.connect(ui)
-            ui.status('Sending ', m['Subject'], ' ...\n')
+            ui.status(_('Sending '), m['Subject'], ' ...\n')
             # Exim does not remove the Bcc field
             del m['Bcc']
             fp = cStringIO.StringIO()


More information about the Mercurial-devel mailing list