-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathprocess_lang.sh
executable file
·33 lines (25 loc) · 1.13 KB
/
process_lang.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
base='en'
for lang
do
echo "Localizing to $lang from $base"
base_proj=${PWD}/TapTapSee/$base.lproj
target_proj=${PWD}/TapTapSee/$lang.lproj
./validate_strings.rb ${base_proj} || exit 1
plutil ${target_proj}/CameraViewController.strings && \
ibtool --import-strings-file ${target_proj}/CameraViewController.strings \
--write ${target_proj}/CameraViewController.xib \
${base_proj}/CameraViewController.xib
plutil ${target_proj}/AboutViewController.strings && \
ibtool --import-strings-file ${target_proj}/AboutViewController.strings \
--write ${target_proj}/AboutViewController.xib \
${base_proj}/AboutViewController.xib
plutil ${target_proj}/PurchaseViewController.strings && \
ibtool --import-strings-file ${target_proj}/PurchaseViewController.strings \
--write ${target_proj}/PurchaseViewController.xib \
${base_proj}/PurchaseViewController.xib
plutil ${target_proj}/DemoSplashViewController.strings && \
ibtool --import-strings-file ${target_proj}/DemoSplashViewController.strings \
--write ${target_proj}/DemoSplashViewController.xib \
${base_proj}/DemoSplashViewController.xib
done