add a script to check for some basic translation syntax errors

This commit is contained in:
B. Petersen
2019-03-09 17:38:12 +01:00
parent e39c569aa1
commit 37bbc41639
3 changed files with 10 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
echo potential errors, if any:
# a space after the percent sign
# results in an IllegalFormatException in getString()
grep --include='strings.xml' -r '\% '
grep --include='strings.xml' -r '\$ '
grep --include='strings.xml' -r ' \$'
+1
View File
@@ -1,3 +1,4 @@
tx pull -l en
mv res/values-en/strings.xml res/values/strings.xml
rmdir res/values-en
./tools/check-translations.sh
+2
View File
@@ -0,0 +1,2 @@
tx pull
./tools/check-translations.sh