changeset 6963:71da881b259e

i18n: mark strings for translation in patchbomb extension
author Martin Geisler <mg@daimi.au.dk>
date Sun, 31 Aug 2008 16:12:03 +0200
parents 2af657eafeba
children b3239badc711
files hgext/patchbomb.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Sun Aug 31 16:12:03 2008 +0200
+++ b/hgext/patchbomb.py	Sun Aug 31 16:12:03 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()