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:04:49 +02:00
parent 9d5134d4cf
commit 8fa0526153

View file

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