add '_' to several strings
authorMuli Ben-Yehuda <mulix@mulix.org>
Thu, 29 Dec 2005 14:59:19 -0600
changeset 1607 d72d27ee72b9
parent 1606 ba625c8083d8
child 1608 722fd16f6f8c
add '_' to several strings
mercurial/commands.py
--- a/mercurial/commands.py	Thu Dec 29 14:51:29 2005 -0600
+++ b/mercurial/commands.py	Thu Dec 29 14:59:19 2005 -0600
@@ -731,7 +731,7 @@
         revs = None
         if opts['rev']:
             if not other.local():
-                error = "clone -r not supported yet for remote repositories."
+                error = _("clone -r not supported yet for remote repositories.")
                 raise util.Abort(error)
             else:
                 revs = [other.lookup(rev) for rev in opts['rev']]
@@ -1714,7 +1714,7 @@
     other = hg.repository(ui, source)
     revs = None
     if opts['rev'] and not other.local():
-        raise util.Abort("pull -r doesn't work for remote repositories yet")
+        raise util.Abort(_("pull -r doesn't work for remote repositories yet"))
     elif opts['rev']:
         revs = [other.lookup(rev) for rev in opts['rev']]
     r = repo.pull(other, heads=revs)
@@ -1972,7 +1972,7 @@
     try:
         httpd = hgweb.create_server(repo)
     except socket.error, inst:
-        raise util.Abort('cannot start server: ' + inst.args[1])
+        raise util.Abort(_('cannot start server: ') + inst.args[1])
 
     if ui.verbose:
         addr, port = httpd.socket.getsockname()