From 5d4744abac591e4317868e5124f6fa7d83fd8b5e Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 10 Feb 2020 14:46:56 -0600 Subject: [PATCH] trans lint: also allow missing %1$s for zero,one,two plural translations --- bin/trans-lint.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/trans-lint.py b/bin/trans-lint.py index 1a4e29fe8c..d0d81a5c6f 100755 --- a/bin/trans-lint.py +++ b/bin/trans-lint.py @@ -86,9 +86,7 @@ def lint_string(path, el, name, dest, source, allow_missing=0): for placeholder in re.findall(r"%\d+\$s", source): if placeholder == "%1$s" and placeholder not in dest and allow_missing > 0: - print(warning(path, el, f"missing %1$s: {name} {dest}")) allow_missing -= 1 - warns += 1 elif dest.count(placeholder) < 1: print(error(path, el, f"missing {placeholder}: {name} {dest}")) errs += 1