Commit 08ae10f1 authored by Jose Blaya's avatar Jose Blaya Committed by Jose Blaya
Browse files

Updated script to import Localization files

parent c9ec5497
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
CWD=`pwd` CWD=`pwd`
DIR=$1 DIR=$1
ORIGINAL="PIA VPN/en.lproj/Localizable.strings" ORIGINAL="PIA VPN/en.lproj/Localizable.strings"
ORIGINAL_PLIST="PIA VPN/en.lproj/InfoPlist.strings"
HERE=`dirname $0` HERE=`dirname $0`
rm -f en-US.xliff rm -f en-US.xliff
...@@ -25,7 +26,15 @@ for SRC in `ls $DIR/*.xliff`; do ...@@ -25,7 +26,15 @@ for SRC in `ls $DIR/*.xliff`; do
elif [ $LANG == 'zh-TW' ]; then elif [ $LANG == 'zh-TW' ]; then
LANG="zh-Hant" LANG="zh-Hant"
fi fi
#Update string file
DST=${ORIGINAL/en.lproj/$LANG.lproj} DST=${ORIGINAL/en.lproj/$LANG.lproj}
echo "Writing to: $DST" echo "Writing to: $DST"
$HERE/xliff2strings $SRC "$ORIGINAL" >$CWD/$DST $HERE/xliff2strings $SRC "$ORIGINAL" >$CWD/$DST
#Update InfoPlist file
DST=${ORIGINAL_PLIST/en.lproj/$LANG.lproj}
echo "Writing to InfoPlist: $DST"
$HERE/xliff2strings $SRC "$ORIGINAL_PLIST" >$CWD/$DST
done done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment