##// END OF EJS Templates
i18n: look translation of both "DEPRECATED" and "(DEPRECATED)" up...
FUJIWARA Katsunori -
r26838:47dd34f2 3.6 stable
parent child Browse files
Show More
@@ -71,7 +71,9 def promptchoice(pe):
71 deprecatedpe = None
71 deprecatedpe = None
72 @scanner()
72 @scanner()
73 def deprecatedsetup(pofile):
73 def deprecatedsetup(pofile):
74 pes = [p for p in pofile if p.msgid == 'DEPRECATED']
74 pes = [p for p in pofile
75 if ((p.msgid == 'DEPRECATED' or p.msgid == '(DEPRECATED)') and
76 p.msgstr)]
75 if len(pes):
77 if len(pes):
76 global deprecatedpe
78 global deprecatedpe
77 deprecatedpe = pes[0]
79 deprecatedpe = pes[0]
@@ -108,7 +110,7 def deprecated(pe):
108 >>> match(deprecated, pe)
110 >>> match(deprecated, pe)
109 """
111 """
110 if not ('(DEPRECATED)' in pe.msgstr or
112 if not ('(DEPRECATED)' in pe.msgstr or
111 (deprecatedpe and deprecatedpe.msgstr and
113 (deprecatedpe and
112 deprecatedpe.msgstr in pe.msgstr)):
114 deprecatedpe.msgstr in pe.msgstr)):
113 yield "msgstr inconsistently translated (DEPRECATED)"
115 yield "msgstr inconsistently translated (DEPRECATED)"
114
116
General Comments 0
You need to be logged in to leave comments. Login now