Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-ios
Commits
08ae10f1
Commit
08ae10f1
authored
Aug 30, 2018
by
Jose Blaya
Committed by
Jose Blaya
Aug 30, 2018
Browse files
Updated script to import Localization files
parent
c9ec5497
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/import_xcode.sh
View file @
08ae10f1
...
...
@@ -13,6 +13,7 @@
CWD
=
`
pwd
`
DIR
=
$1
ORIGINAL
=
"PIA VPN/en.lproj/Localizable.strings"
ORIGINAL_PLIST
=
"PIA VPN/en.lproj/InfoPlist.strings"
HERE
=
`
dirname
$0
`
rm
-f
en-US.xliff
...
...
@@ -25,7 +26,15 @@ for SRC in `ls $DIR/*.xliff`; do
elif
[
$LANG
==
'zh-TW'
]
;
then
LANG
=
"zh-Hant"
fi
#Update string file
DST
=
${
ORIGINAL
/en.lproj/
$LANG
.lproj
}
echo
"Writing to:
$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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment