Mercurial > public > mercurial-scm > hg
comparison mercurial/sshserver.py @ 29389:98e8313dcd9e
i18n: translate abort messages
I found a few places where message given to abort is
not translated, I don't find any reason to not translate
them.
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Tue, 14 Jun 2016 11:53:55 +0200 |
parents | 56b2bcea2529 |
children | 1a29db79a98d |
comparison
equal
deleted
inserted
replaced
29388:f694e20193f2 | 29389:98e8313dcd9e |
---|---|
9 from __future__ import absolute_import | 9 from __future__ import absolute_import |
10 | 10 |
11 import os | 11 import os |
12 import sys | 12 import sys |
13 | 13 |
14 from .i18n import _ | |
14 from . import ( | 15 from . import ( |
15 error, | 16 error, |
16 hook, | 17 hook, |
17 util, | 18 util, |
18 wireproto, | 19 wireproto, |
38 keys = args.split() | 39 keys = args.split() |
39 for n in xrange(len(keys)): | 40 for n in xrange(len(keys)): |
40 argline = self.fin.readline()[:-1] | 41 argline = self.fin.readline()[:-1] |
41 arg, l = argline.split() | 42 arg, l = argline.split() |
42 if arg not in keys: | 43 if arg not in keys: |
43 raise error.Abort("unexpected parameter %r" % arg) | 44 raise error.Abort(_("unexpected parameter %r") % arg) |
44 if arg == '*': | 45 if arg == '*': |
45 star = {} | 46 star = {} |
46 for k in xrange(int(l)): | 47 for k in xrange(int(l)): |
47 argline = self.fin.readline()[:-1] | 48 argline = self.fin.readline()[:-1] |
48 arg, l = argline.split() | 49 arg, l = argline.split() |