From 8b308ca3be408f266ea9f0ad9618d1fa31408433 Mon Sep 17 00:00:00 2001 From: bjoern Date: Fri, 30 Sep 2022 15:36:30 +0200 Subject: [PATCH] check translation for bad lineends (#2389) `
` lineends are not allowed in strings.xml and lead to compile errors as "terminating tag missing". (adding these checks as this pop up from time to time and is easily overseen) --- scripts/check-translations.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/check-translations.sh b/scripts/check-translations.sh index ee90db118..8b2e4ee52 100755 --- a/scripts/check-translations.sh +++ b/scripts/check-translations.sh @@ -15,3 +15,6 @@ grep --include='strings.xml' -r "\\\\[^n\"'’]" . # check for usage of a single `&` - this has to be an `&` grep --include='strings.xml' -r "&[^a]" . + +# single
is not needed - and not allowed in xml, leading to error "matching end tag missing" +grep --include='strings.xml' -r "