Show English version of untranslated strings
This commit is contained in:
parent
21d1f7d410
commit
990654287b
|
@ -6,8 +6,12 @@ LANG_TARGET="$1"
|
||||||
STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"
|
STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"
|
||||||
STRINGS_TARGET="$DIR/$LANG_TARGET.lproj/$FILENAME"
|
STRINGS_TARGET="$DIR/$LANG_TARGET.lproj/$FILENAME"
|
||||||
IDS="string-ids.tmp"
|
IDS="string-ids.tmp"
|
||||||
|
TMPOUT="untranslated.tmp"
|
||||||
|
|
||||||
sed -E "s/^(.+) = .*$/\1/" $STRINGS_BASE | grep '^"' >$IDS.$LANG_BASE
|
sed -E "s/^(.+) = .*$/\1/" $STRINGS_BASE | grep '^"' >$IDS.$LANG_BASE
|
||||||
sed -E "s/^(.+) = .*$/\1/" $STRINGS_TARGET | grep '^"' >$IDS.$LANG_TARGET
|
sed -E "s/^(.+) = .*$/\1/" $STRINGS_TARGET | grep '^"' >$IDS.$LANG_TARGET
|
||||||
diff $IDS.$LANG_BASE $IDS.$LANG_TARGET | grep "^<" | sed -E 's/^< "(.*)"$/\1/g'
|
diff $IDS.$LANG_BASE $IDS.$LANG_TARGET | grep "^<" | sed -E 's/^< "(.*)"$/\1/g' >$TMPOUT
|
||||||
rm -f $IDS.*
|
rm -f $IDS.*
|
||||||
|
|
||||||
|
grep -f $TMPOUT $STRINGS_BASE
|
||||||
|
rm $TMPOUT
|
||||||
|
|
Loading…
Reference in New Issue