Mercurial > hg
comparison i18n/check-translation.py @ 26276:93395bee98ba
tests: cleanup check-translation deprecated
author | timeless@mozdev.org |
---|---|
date | Thu, 17 Sep 2015 21:20:17 -0400 |
parents | 8fb92ff63ccf |
children | ad4d6c7aea6a |
comparison
equal
deleted
inserted
replaced
26275:3e9d63820cd2 | 26276:93395bee98ba |
---|---|
94 >>> match(deprecated, pe) | 94 >>> match(deprecated, pe) |
95 True | 95 True |
96 >>> for e in deprecated(pe): print e | 96 >>> for e in deprecated(pe): print e |
97 msgstr inconsistently translated (DEPRECATED) | 97 msgstr inconsistently translated (DEPRECATED) |
98 """ | 98 """ |
99 global deprecatedpe | 99 if not ('(DEPRECATED)' in pe.msgstr or |
100 if not '(DEPRECATED)' in pe.msgstr: | 100 (deprecatedpe and deprecatedpe.msgstr and |
101 if not (deprecatedpe and deprecatedpe.msgstr | 101 deprecatedpe.msgstr in pe.msgstr)): |
102 and deprecatedpe.msgstr in pe.msgstr): | 102 yield "msgstr inconsistently translated (DEPRECATED)" |
103 yield "msgstr inconsistently translated (DEPRECATED)" | |
104 | 103 |
105 #################### | 104 #################### |
106 | 105 |
107 def warningchecker(msgidpat=None): | 106 def warningchecker(msgidpat=None): |
108 return levelchecker('warning', msgidpat) | 107 return levelchecker('warning', msgidpat) |