Don't strip underscores from keys when trying to remove a translation mark

This commit is contained in:
Alexander van Gessel 2012-08-19 21:13:03 +01:00
parent a150d38f24
commit a1e5070ab6

View file

@ -1321,7 +1321,7 @@ def global_sanity_check(filename, lines):
if markcheck and has_tr_mark and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment):
print '"%s", line %d: %s should not have a translation mark' \
% (filename, i+1, key)
lines[i] = lines[i].replace("_", "", 1)
lines[i] = prefix + value.replace("_", "", 1) + comment + '\n'
# Now that we know who's present, register all these names as spellings
declared_spellings[filename] = map(lambda x: x.lower(), present)
# Check for textdomain strings; should be exactly one, on line 1