i18n/check-translation.py
changeset 40185 19fc5a986669
parent 33899 078099304772
child 43076 2372284d9457
--- 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: