changeset 1607:d72d27ee72b9

add '_' to several strings
author Muli Ben-Yehuda <mulix@mulix.org>
date Thu, 29 Dec 2005 14:59:19 -0600
parents ba625c8083d8
children 722fd16f6f8c
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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()