match: mark error messages for translation stable
authorMartin Geisler <mg@aragost.com>
Mon, 30 Aug 2010 17:11:51 +0200
branchstable
changeset 12133 b046b90c4ae5
parent 12129 07ac2a560fce
child 12134 26d86a6cf2af
match: mark error messages for translation
mercurial/match.py
--- a/mercurial/match.py	Mon Aug 30 20:27:25 2010 -0400
+++ b/mercurial/match.py	Mon Aug 30 17:11:51 2010 +0200
@@ -7,6 +7,7 @@
 
 import re
 import util
+from i18n import _
 
 class match(object):
     def __init__(self, root, cwd, patterns, include=[], exclude=[],
@@ -214,8 +215,8 @@
             try:
                 re.compile('(?:%s)' % _regex(k, p, tail))
             except re.error:
-                raise util.Abort("invalid pattern (%s): %s" % (k, p))
-        raise util.Abort("invalid pattern")
+                raise util.Abort(_("invalid pattern (%s): %s") % (k, p))
+        raise util.Abort(_("invalid pattern"))
 
 def _normalize(names, default, root, cwd):
     pats = []