Address bug #12259.

This commit is contained in:
Eric S. Raymond 2008-09-02 00:32:16 +00:00
parent cb33e98e29
commit 6d417ce2f5

View file

@ -523,7 +523,7 @@ def sanity_check(filename, lines):
elif preamble_seen and not ignore_id and not in_object and not value in present:
print '"%s", line %d: unknown \'%s\' referred to by id' \
% (filename, i+1, value)
if has_tr_mark and not "wmllint: ignore" in line:
if has_tr_mark and not "wmllint: ignore" in lines[i]:
print '"%s", line %d: %s should not have a translation mark' \
% (filename, i+1, key)
lines[i] = lines[i].replace("_", "", 1)