fix accidental reassignment in trans-lint.py

pull/6182/head
Niklas Fiekas 2020-03-17 22:19:26 +01:00
parent 698b9d18f4
commit 812e7bf075
1 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ def lint(report, path):
for item in el:
quantity = item.attrib["quantity"]
allow_missing = 1 if quantity in ["zero", "one", "two"] else 0
name = f"{name}:{quantity}"
lint_string(ReportContext(report, path, item, name, item.text), item.text, source_el.find("./item[@quantity='other']").text, allow_missing)
plural_name = f"{name}:{quantity}"
lint_string(ReportContext(report, path, item, plural_name, item.text), item.text, source_el.find("./item[@quantity='other']").text, allow_missing)
else:
ctx.error(f"bad resources tag: {el.tag}")