# HG changeset patch # User Martin Geisler # Date 1220191922 -7200 # Node ID e01ed40a31a2ebd43f24782ae400e9afbff29268 # Parent bd979854a38885ca16f6d55c37df84b9e2f2dd6c i18n: mark strings for translation in hgk extension diff -r bd979854a388 -r e01ed40a31a2 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 = {