diff mercurial/sslutil.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 222f6834c69a
line wrap: on
line diff
--- a/mercurial/sslutil.py	Tue Jun 07 12:10:01 2016 +0200
+++ b/mercurial/sslutil.py	Tue Jun 14 11:53:55 2016 +0200
@@ -76,15 +76,15 @@
 
         def load_verify_locations(self, cafile=None, capath=None, cadata=None):
             if capath:
-                raise error.Abort('capath not supported')
+                raise error.Abort(_('capath not supported'))
             if cadata:
-                raise error.Abort('cadata not supported')
+                raise error.Abort(_('cadata not supported'))
 
             self._cacerts = cafile
 
         def set_ciphers(self, ciphers):
             if not self._supportsciphers:
-                raise error.Abort('setting ciphers not supported')
+                raise error.Abort(_('setting ciphers not supported'))
 
             self._ciphers = ciphers
 
@@ -229,7 +229,7 @@
       to use.
     """
     if not serverhostname:
-        raise error.Abort('serverhostname argument is required')
+        raise error.Abort(_('serverhostname argument is required'))
 
     settings = _hostsettings(ui, serverhostname)