wmllint: fixed translation marks not being removed from values when checking if a string is empty
This commit is contained in:
parent
5b846fea3c
commit
8b8f99e65a
1 changed files with 1 additions and 1 deletions
|
@ -2468,7 +2468,7 @@ to be called on their own".format(filename, num))
|
|||
print('"%s", line %d: %s should be renamed as variation_id and/or marked as translatable' \
|
||||
% (filename, i+1, key))
|
||||
elif is_translatable(key):
|
||||
if markcheck and has_tr_mark and not value:
|
||||
if markcheck and has_tr_mark and not attr_strip(value):
|
||||
print('"%s", line %d: %s doesn`t need translation mark (translatable string is empty)' \
|
||||
% (filename, i+1, key))
|
||||
lines[i] = lines[i].replace("=_","=")
|
||||
|
|
Loading…
Add table
Reference in a new issue