From 92a3be90db0f1ce2dafae141f6c403e8fa937a65 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 6 Dec 2019 11:53:52 +0100 Subject: [PATCH] Improve check script, take app/core argument --- scripts/list-untranslated.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/list-untranslated.sh b/scripts/list-untranslated.sh index edcd5c94..5d8acd83 100755 --- a/scripts/list-untranslated.sh +++ b/scripts/list-untranslated.sh @@ -4,8 +4,14 @@ FILENAME_APP="App.strings" DIR_CORE="Submodules/Core/Passepartout/Resources" FILENAME_CORE="Core.strings" -DIR=$DIR_APP -FILENAME=$FILENAME_APP +if [[ $2 = "core" ]]; then + DIR=$DIR_CORE + FILENAME=$FILENAME_CORE +else + DIR=$DIR_APP + FILENAME=$FILENAME_APP +fi + LANG_BASE="en" LANG_TARGET="$1" STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"