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

Joel Rosdahl joel at rosdahl.net
Sat Oct 25 12:09:17 CDT 2008


# HG changeset patch
# User Joel Rosdahl <joel at rosdahl.net>
# Date 1224954292 -7200
# Node ID 27de9fd562e96ac5898c7f3ae0ebdc39aeab5b15
# 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,7 +110,7 @@
 
     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 ' '


More information about the Mercurial-devel mailing list