i18n/check-translation.py
branchstable
changeset 26837 33894facc180
parent 26277 ad4d6c7aea6a
child 26838 47dd34f2e727
--- a/i18n/check-translation.py	Sat Oct 31 21:45:46 2015 -0400
+++ b/i18n/check-translation.py	Sun Nov 01 08:38:56 2015 +0900
@@ -76,7 +76,7 @@
         global deprecatedpe
         deprecatedpe = pes[0]
 
-@fatalchecker('(DEPRECATED)')
+@fatalchecker(r'\(DEPRECATED\)')
 def deprecated(pe):
     """Check for DEPRECATED
     >>> ped = polib.POEntry(
@@ -102,6 +102,10 @@
     True
     >>> for e in deprecated(pe): print e
     msgstr inconsistently translated (DEPRECATED)
+    >>> pe = polib.POEntry(
+    ...     msgid = 'Something (DEPRECATED, foo bar)',
+    ...     msgstr= 'something (DETACERPED, foo bar)')
+    >>> match(deprecated, pe)
     """
     if not ('(DEPRECATED)' in pe.msgstr or
             (deprecatedpe and deprecatedpe.msgstr and