Mercurial > hg
changeset 12133:b046b90c4ae5 stable
match: mark error messages for translation
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 30 Aug 2010 17:11:51 +0200 |
parents | 07ac2a560fce |
children | 26d86a6cf2af |
files | mercurial/match.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []