diff hgext/convert/git.py @ 10939:9f6731b03906 stable

convert: mark strings for translation
author Martin Geisler <mg@lazybytes.net>
date Sun, 18 Apr 2010 15:47:49 +0200
parents 02d6149a480b
children 7fab6ae3f688
line wrap: on
line diff
--- a/hgext/convert/git.py	Sun Apr 18 15:47:49 2010 +0200
+++ b/hgext/convert/git.py	Sun Apr 18 15:47:49 2010 +0200
@@ -7,6 +7,7 @@
 
 import os
 from mercurial import util
+from mercurial.i18n import _
 
 from common import NoRepo, commit, converter_source, checktool
 
@@ -35,7 +36,7 @@
         if os.path.isdir(path + "/.git"):
             path += "/.git"
         if not os.path.exists(path + "/objects"):
-            raise NoRepo("%s does not look like a Git repository" % path)
+            raise NoRepo(_("%s does not look like a Git repository") % path)
 
         checktool('git', 'git')