--- a/i18n/check-translation.py Fri Sep 18 14:24:53 2015 +0800
+++ b/i18n/check-translation.py Thu Sep 17 21:20:17 2015 -0400
@@ -96,11 +96,10 @@
>>> for e in deprecated(pe): print e
msgstr inconsistently translated (DEPRECATED)
"""
- global deprecatedpe
- if not '(DEPRECATED)' in pe.msgstr:
- if not (deprecatedpe and deprecatedpe.msgstr
- and deprecatedpe.msgstr in pe.msgstr):
- yield "msgstr inconsistently translated (DEPRECATED)"
+ if not ('(DEPRECATED)' in pe.msgstr or
+ (deprecatedpe and deprecatedpe.msgstr and
+ deprecatedpe.msgstr in pe.msgstr)):
+ yield "msgstr inconsistently translated (DEPRECATED)"
####################