i18n: mark strings for translation in hgk extension
authorMartin Geisler <mg@daimi.au.dk>
Sun, 31 Aug 2008 16:12:02 +0200
changeset 6958 e01ed40a31a2
parent 6957 bd979854a388
child 6959 56c643bb562d
i18n: mark strings for translation in hgk extension
hgext/hgk.py
--- a/hgext/hgk.py	Sun Aug 31 16:12:02 2008 +0200
+++ b/hgext/hgk.py	Sun Aug 31 16:12:02 2008 +0200
@@ -47,6 +47,7 @@
 import os
 from mercurial import commands, util, patch, revlog, cmdutil
 from mercurial.node import nullid, nullrev, short
+from mercurial.i18n import _
 
 def difftree(ui, repo, node1=None, node2=None, *files, **opts):
     """diff trees from two commits"""
@@ -149,12 +150,12 @@
 
     else:
         if not type or not r:
-            ui.warn("cat-file: type or revision not supplied\n")
+            ui.warn(_("cat-file: type or revision not supplied\n"))
             commands.help_(ui, 'cat-file')
 
     while r:
         if type != "commit":
-            ui.warn("aborting hg cat-file only understands commits\n")
+            ui.warn(_("aborting hg cat-file only understands commits\n"))
             return 1;
         n = repo.lookup(r)
         catcommit(ui, repo, n, prefix)
@@ -316,7 +317,7 @@
     os.chdir(repo.root)
     optstr = ' '.join(['--%s %s' % (k, v) for k, v in opts.iteritems() if v])
     cmd = ui.config("hgk", "path", "hgk") + " %s %s" % (optstr, " ".join(etc))
-    ui.debug("running %s\n" % cmd)
+    ui.debug(_("running %s\n") % cmd)
     util.system(cmd)
 
 cmdtable = {