##// END OF EJS Templates
match: mark error messages for translation
Martin Geisler -
r12133:b046b90c stable
parent child Browse files
Show More
@@ -7,6 +7,7 b''
7
7
8 import re
8 import re
9 import util
9 import util
10 from i18n import _
10
11
11 class match(object):
12 class match(object):
12 def __init__(self, root, cwd, patterns, include=[], exclude=[],
13 def __init__(self, root, cwd, patterns, include=[], exclude=[],
@@ -214,8 +215,8 b' def _buildmatch(pats, tail):'
214 try:
215 try:
215 re.compile('(?:%s)' % _regex(k, p, tail))
216 re.compile('(?:%s)' % _regex(k, p, tail))
216 except re.error:
217 except re.error:
217 raise util.Abort("invalid pattern (%s): %s" % (k, p))
218 raise util.Abort(_("invalid pattern (%s): %s") % (k, p))
218 raise util.Abort("invalid pattern")
219 raise util.Abort(_("invalid pattern"))
219
220
220 def _normalize(names, default, root, cwd):
221 def _normalize(names, default, root, cwd):
221 pats = []
222 pats = []
General Comments 0
You need to be logged in to leave comments. Login now