Show More
@@ -71,7 +71,9 b' 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 |
|
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 b' 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 |
|
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