Don't strip underscores from keys when trying to remove a translation mark
This commit is contained in:
parent
a150d38f24
commit
a1e5070ab6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue