[PATCH 04 of 14] bookmarks: Mark some missing strings for i18n

Joel Rosdahl joel at rosdahl.net
Sat Oct 25 10:18:37 CDT 2008


# HG changeset patch
# User Joel Rosdahl <joel at rosdahl.net>
# Date 1224947620 -7200
# Node ID d6172189a8572a44dd79b0710cbc225b3eb0640f
# Parent  dbce8e42b0fd0eaff5e24bb62935fd5b235c4c1c
bookmarks: Mark some missing strings for i18n

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -95,7 +95,7 @@
 
     if mark != None:
         if mark.strip().count("\n") > 0:
-            raise util.Abort("bookmark cannot contain newlines")
+            raise util.Abort(_("bookmark cannot contain newlines"))
         if mark in marks and not force:
             raise util.Abort(_("a bookmark of the same name already exists"))
         if ((mark in repo.branchtags() or mark == repo.dirstate.branch())
@@ -110,11 +110,11 @@
 
     if mark == None:
         if len(marks) == 0:
-            ui.status("no bookmarks set\n")
+            ui.status(_("no bookmarks set\n"))
         else:
             for bmark, n in marks.iteritems():
                 prefix = (n == cur) and '*' or ' '
-                ui.write(" %s %-25s %d:%s\n" % (prefix, bmark, repo.changelog.rev(n), hexfn(n)))
+                ui.write(_(" %s %-25s %d:%s\n") % (prefix, bmark, repo.changelog.rev(n), hexfn(n)))
         return
 
 def _revstostrip(changelog, node):


More information about the Mercurial-devel mailing list