Mercurial > hg-stable
diff i18n/check-translation.py @ 40185:19fc5a986669
polib: update to latest release 1.0.7 (upstream rev d75ce6dbbc2a)
# no-check-commit third-party code that doesn't match our style
Differential Revision: https://phab.mercurial-scm.org/D5001
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Oct 2018 11:44:27 -0400 |
parents | 078099304772 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/i18n/check-translation.py Fri Oct 12 10:01:09 2018 -0400 +++ b/i18n/check-translation.py Fri Oct 12 11:44:27 2018 -0400 @@ -224,14 +224,6 @@ failures, tests = doctest.testmod() sys.exit(failures and 1 or 0) - # replace polib._POFileParser to show linenum of problematic msgstr - class ExtPOFileParser(polib._POFileParser): - def process(self, symbol, linenum): - super(ExtPOFileParser, self).process(symbol, linenum) - if symbol == 'MS': # msgstr - self.current_entry.linenum = linenum - polib._POFileParser = ExtPOFileParser - detected = [] warning = options.warning for f in args: