Mercurial > hg
changeset 6958:e01ed40a31a2
i18n: mark strings for translation in hgk extension
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sun, 31 Aug 2008 16:12:02 +0200 |
parents | bd979854a388 |
children | 56c643bb562d |
files | hgext/hgk.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 = {