diff --git a/tools/check-translations.sh b/tools/check-translations.sh new file mode 100755 index 000000000..1ded643fe --- /dev/null +++ b/tools/check-translations.sh @@ -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 ' \$' diff --git a/tools/tx-pull-source.sh b/tools/tx-pull-source.sh index bcf17948f..29ae3a188 100755 --- a/tools/tx-pull-source.sh +++ b/tools/tx-pull-source.sh @@ -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 diff --git a/tools/tx-pull-translations.sh b/tools/tx-pull-translations.sh new file mode 100755 index 000000000..fbb878274 --- /dev/null +++ b/tools/tx-pull-translations.sh @@ -0,0 +1,2 @@ +tx pull +./tools/check-translations.sh