Skip to content

Commit

Permalink
wmllint: add translation mark only after the first equal sign
Browse files Browse the repository at this point in the history
Fixes #3489
  • Loading branch information
Elvish-Hunter authored and jyrkive committed Oct 14, 2018
1 parent 196764f commit fe26f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/wmllint
Expand Up @@ -2043,7 +2043,7 @@ def global_sanity_check(filename, lines):
if markcheck and not value.startswith("$") and not value.startswith("{") and not re.match(" +", value) and not has_tr_mark and '""' not in line and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment):
print('"%s", line %d: %s needs translation mark' \
% (filename, i+1, key))
lines[i] = lines[i].replace('=', "=_ ")
lines[i] = lines[i].replace('=', "=_ ", 1)
nv = sentence_end.sub(" ", value)
if nv != value:
print('"%s", line %d: double space after sentence end' \
Expand Down

0 comments on commit fe26f51

Please sign in to comment.