From c2530343406e34089e5cd3b6431d32ecc5302ad2 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 7 Apr 2019 15:43:31 +0200 Subject: [PATCH] List untranslated strings --- ci/list-untranslated.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ci/list-untranslated.sh diff --git a/ci/list-untranslated.sh b/ci/list-untranslated.sh new file mode 100755 index 00000000..de5ecccd --- /dev/null +++ b/ci/list-untranslated.sh @@ -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.*