commit a0b55620d079cd42dfc139187d90f34e722fd88c parent 4d8315d12e1871a900c03905ac6177f24cc99a98 Author: HernĂ¢ni Marques <hernani@vecirex.net> Date: Thu, 16 Jul 2026 11:11:48 +0200 fix/check-translations (11424): document --lint in README Diffstat:
| M | README.md | | | 21 | ++++++++++++++++++--- |
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md @@ -68,9 +68,24 @@ From the git repository's root path: ./check-translations.py de # German ./check-translations.py it # Italian ./check-translations.py fr # French + +# Lint-like checks (format args, extra keys, string-array lengths): + +./check-translations.py de --lint +./check-translations.py fr --lint +./check-translations.py --lint # all languages ``` +``--lint`` reports: + +* **MissingTranslation** / **ExtraTranslation** (vs English ``values/``) +* **StringFormatCount** (``%s`` / ``%1$d`` placeholders must match) +* **StringArrayLength** / **StringArrayPair** (e.g. language values vs labels) + +Exit status is non-zero if missing strings (with ``LANG``) or lint issues +(with ``--lint``) are found. + For the PoS app (``merchant-terminal``), DE and FR should report -``(complete)`` / 0 missing when checked with the script above -(see #11424). Other modules (e.g. wallet) may still list missing keys; -that is unrelated to PoS completeness. +``(complete)`` / 0 missing and clean ``--lint`` output (see #11424). +Other modules (e.g. wallet) may still list missing keys; that is +unrelated to PoS completeness.