update translations, update check-translations.sh

This commit is contained in:
B. Petersen 2020-10-30 16:09:14 +01:00
parent f05b887ce6
commit 99f592bf68
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC
4 changed files with 11 additions and 10 deletions

View file

@ -6,7 +6,8 @@ grep --include='strings.xml' -r '\% ' .
grep --include='strings.xml' -r '\$ ' .
grep --include='strings.xml' -r ' \$' .
# a space after a backslash is typically unwanted, sth. as `\ n`.
# (this check disallows using the backslash as such alone,
# however, this is currently no issue, as it is just not used this way anywhere)
grep --include='strings.xml' -r '\\ ' .
# check for broken usage of escape sequences:
# - alert on `\ n`, `\ N`, `\n\Another paragraph` and so on
# - allow only `\n`, `\"`, `\'` and `\`
# (`` might not be escaped, but it is done often eg. in "sq", so we allow that for now)
grep --include='strings.xml' -r "\\\\[^n\"']" .