Make ignore/noconvert work for pangoization

This commit is contained in:
Alexander van Gessel 2011-02-19 01:12:34 +01:00
parent b7b3d320bf
commit c8e1f39da3

View file

@ -1275,7 +1275,7 @@ def global_sanity_check(filename, lines):
if capitalization_error.search(lines[i]):
print '"%s", line %d: probable capitalization or punctuation error' \
% (filename, i+1)
if key == "message" and in_message and not in_option:
if key == "message" and in_message and not in_option and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment):
lines[i] = pangoize(lines[i], filename, i)
else:
if (in_scenario or in_multiplayer) and key == "id":