Mercurial > public > mercurial-scm > hg
diff mercurial/httprepo.py @ 1402:9d2c2e6b32b5
i18n part2: use '_' for all strings who are part of the user interface
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 18 Oct 2005 18:38:39 -0700 |
parents | cf9a1233738a |
children | 50de0887bbcd |
line wrap: on
line diff
--- a/mercurial/httprepo.py Tue Oct 18 18:38:04 2005 -0700 +++ b/mercurial/httprepo.py Tue Oct 18 18:38:39 2005 -0700 @@ -68,7 +68,7 @@ return -1 def do_cmd(self, cmd, **args): - self.ui.debug("sending %s command\n" % cmd) + self.ui.debug(_("sending %s command\n") % cmd) q = {"cmd": cmd} q.update(args) qs = urllib.urlencode(q) @@ -80,13 +80,13 @@ if not proto.startswith('application/mercurial') and \ not proto.startswith('text/plain') and \ not proto.startswith('application/hg-changegroup'): - raise hg.RepoError("'%s' does not appear to be an hg repository" % + raise hg.RepoError(_("'%s' does not appear to be an hg repository") % self.url) if proto.startswith('application/mercurial'): version = proto[22:] if float(version) > 0.1: - raise hg.RepoError("'%s' uses newer protocol %s" % + raise hg.RepoError(_("'%s' uses newer protocol %s") % (self.url, version)) return resp @@ -96,7 +96,7 @@ try: return map(bin, d[:-1].split(" ")) except: - self.ui.warn("unexpected response:\n" + d[:400] + "\n...\n") + self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") raise def branches(self, nodes): @@ -106,7 +106,7 @@ br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ] return br except: - self.ui.warn("unexpected response:\n" + d[:400] + "\n...\n") + self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") raise def between(self, pairs): @@ -116,7 +116,7 @@ p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] return p except: - self.ui.warn("unexpected response:\n" + d[:400] + "\n...\n") + self.ui.warn(_("unexpected response:\n") + d[:400] + "\n...\n") raise def changegroup(self, nodes):