wmllint: add translation mark only after the first equal sign
Fixes #3489
This commit is contained in:
parent
196764ffe8
commit
fe26f513b8
1 changed files with 1 additions and 1 deletions
|
@ -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' \
|
||||
|
|
Loading…
Add table
Reference in a new issue