##// END OF EJS Templates
i18n: fix regexp pattern to detect translation for DEPRECATED...
FUJIWARA Katsunori -
r26837:33894fac stable
parent child Browse files
Show More
@@ -76,7 +76,7 b' def deprecatedsetup(pofile):'
76 global deprecatedpe
76 global deprecatedpe
77 deprecatedpe = pes[0]
77 deprecatedpe = pes[0]
78
78
79 @fatalchecker('(DEPRECATED)')
79 @fatalchecker(r'\(DEPRECATED\)')
80 def deprecated(pe):
80 def deprecated(pe):
81 """Check for DEPRECATED
81 """Check for DEPRECATED
82 >>> ped = polib.POEntry(
82 >>> ped = polib.POEntry(
@@ -102,6 +102,10 b' def deprecated(pe):'
102 True
102 True
103 >>> for e in deprecated(pe): print e
103 >>> for e in deprecated(pe): print e
104 msgstr inconsistently translated (DEPRECATED)
104 msgstr inconsistently translated (DEPRECATED)
105 >>> pe = polib.POEntry(
106 ... msgid = 'Something (DEPRECATED, foo bar)',
107 ... msgstr= 'something (DETACERPED, foo bar)')
108 >>> match(deprecated, pe)
105 """
109 """
106 if not ('(DEPRECATED)' in pe.msgstr or
110 if not ('(DEPRECATED)' in pe.msgstr or
107 (deprecatedpe and deprecatedpe.msgstr and
111 (deprecatedpe and deprecatedpe.msgstr and
General Comments 0
You need to be logged in to leave comments. Login now