hgweb: no i18n in protocol responses
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 21 Feb 2008 15:56:35 +0100
changeset 6155 ea161d648117
parent 6154 ef1c5a3b653d
child 6156 ba0790061ba7
hgweb: no i18n in protocol responses
mercurial/hgweb/protocol.py
--- a/mercurial/hgweb/protocol.py	Thu Feb 21 17:02:28 2008 +0100
+++ b/mercurial/hgweb/protocol.py	Thu Feb 21 15:56:35 2008 +0100
@@ -123,7 +123,7 @@
     ssl_req = web.configbool('web', 'push_ssl', True)
     if ssl_req:
         if req.env.get('wsgi.url_scheme') != 'https':
-            bail(_('ssl required\n'))
+            bail('ssl required\n')
             return
         proto = 'https'
     else:
@@ -131,7 +131,7 @@
 
     # do not allow push unless explicitly allowed
     if not web.check_perm(req, 'push', False):
-        bail(_('push not authorized\n'),
+        bail('push not authorized\n',
              headers={'status': '401 Unauthorized'})
         return
 
@@ -143,7 +143,7 @@
 
     # fail early if possible
     if not check_heads():
-        bail(_('unsynced changes\n'))
+        bail('unsynced changes\n')
         return
 
     req.respond(HTTP_OK, HGTYPE)
@@ -163,7 +163,7 @@
             try:
                 if not check_heads():
                     req.write('0\n')
-                    req.write(_('unsynced changes\n'))
+                    req.write('unsynced changes\n')
                     return
 
                 fp.seek(0)