wmllint: fixed translation marks not being removed from values when checking if a string is empty

This commit is contained in:
Elvish_Hunter 2022-05-28 22:03:25 +02:00
parent 5b846fea3c
commit 8b8f99e65a

View file

@ -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("=_","=")