List untranslated strings

This commit is contained in:
Davide De Rosa 2019-04-07 15:43:31 +02:00
parent 00aedbf470
commit c253034340
1 changed files with 11 additions and 0 deletions

11
ci/list-untranslated.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
DIR="Passepartout/Resources"
FILENAME="Localizable.strings"
STRINGS_EN="$DIR/en.lproj/$FILENAME"
STRINGS_IT="$DIR/it.lproj/$FILENAME"
IDS="string-ids.tmp"
sed -E "s/^(.+) = .*$/\1/" $STRINGS_EN | grep '^"' >$IDS.en
sed -E "s/^(.+) = .*$/\1/" $STRINGS_IT | grep '^"' >$IDS.it
diff $IDS.en $IDS.it | grep "^<" | sed -E 's/^< "(.*)"$/\1/g'
rm -f $IDS.*