[PATCH 02 of 21] mq, i18n: mark strings for translation
Martin Geisler
mg at daimi.au.dk
Sat Jan 3 10:40:00 CST 2009
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230995711 -3600
# Node ID a57a68af4179fe25ea6226a8d49d5e2b6d80fdf0
# Parent 6a36e7bd243483bf534238707d9f1f8d59bacfb5
mq, i18n: mark strings for translation
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -965,10 +965,10 @@
raise
top = self.applied[-1].name
if ret[0]:
- self.ui.write(
- "Errors during apply, please fix and refresh %s\n" % top)
+ self.ui.write(_("Errors during apply, please fix and "
+ "refresh %s\n") % top)
else:
- self.ui.write("Now at: %s\n" % top)
+ self.ui.write(_("Now at: %s\n") % top)
return ret[0]
finally:
del wlock
@@ -1599,7 +1599,7 @@
index = self.full_series_end() + i
self.full_series[index:index] = [patchname]
self.parse_series()
- self.ui.warn("adding %s to series file\n" % patchname)
+ self.ui.warn(_("adding %s to series file\n") % patchname)
i += 1
added.append(patchname)
patchname = None
@@ -1783,7 +1783,7 @@
return q.qseries(repo, start=t-1, length=1, status='A',
summary=opts.get('summary'))
else:
- ui.write("No patches applied\n")
+ ui.write(_("No patches applied\n"))
return 1
def next(ui, repo, **opts):
@@ -1791,7 +1791,7 @@
q = repo.mq
end = q.series_end()
if end == len(q.series):
- ui.write("All patches applied\n")
+ ui.write(_("All patches applied\n"))
return 1
return q.qseries(repo, start=end, length=1, summary=opts.get('summary'))
@@ -1800,10 +1800,10 @@
q = repo.mq
l = len(q.applied)
if l == 1:
- ui.write("Only one patch applied\n")
+ ui.write(_("Only one patch applied\n"))
return 1
if not l:
- ui.write("No patches applied\n")
+ ui.write(_("No patches applied\n"))
return 1
return q.qseries(repo, start=l-2, length=1, status='A',
summary=opts.get('summary'))
More information about the Mercurial-devel
mailing list