Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/sshserver.py Tue Jun 07 12:10:01 2016 +0200 +++ b/mercurial/sshserver.py Tue Jun 14 11:53:55 2016 +0200 @@ -11,6 +11,7 @@ import os import sys +from .i18n import _ from . import ( error, hook, @@ -40,7 +41,7 @@ argline = self.fin.readline()[:-1] arg, l = argline.split() if arg not in keys: - raise error.Abort("unexpected parameter %r" % arg) + raise error.Abort(_("unexpected parameter %r") % arg) if arg == '*': star = {} for k in xrange(int(l)):