diff mercurial/hg.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 0d83ad967bf8
children f21e0d91d386
line wrap: on
line diff
--- a/mercurial/hg.py	Tue Jun 07 12:10:01 2016 +0200
+++ b/mercurial/hg.py	Tue Jun 14 11:53:55 2016 +0200
@@ -484,7 +484,8 @@
             sharepath = os.path.join(
                 sharepool, hashlib.sha1(source).hexdigest())
         else:
-            raise error.Abort('unknown share naming mode: %s' % sharenamemode)
+            raise error.Abort(_('unknown share naming mode: %s') %
+                              sharenamemode)
 
         if sharepath:
             return clonewithshare(ui, peeropts, sharepath, source, srcpeer,