forked from chockenberry/iPulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync_localization.sh
executable file
·52 lines (46 loc) · 1.86 KB
/
sync_localization.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
cd French.lproj
rm -rf Preferences*.nib
cvs update -d Preferences.nib
nibtool --use-oids --localizable-strings Preferences.nib > previous.strings
nibtool --use-oids --dictionary previous.strings -W Preferences_new.nib ../English.lproj/Preferences.nib
mv Preferences.nib Preferences_old.nib
mv Preferences_new.nib Preferences.nib
mv Preferences_old.nib/CVS Preferences.nib
cd ..
cd Japanese.lproj
rm -rf Preferences*.nib
cvs update -d Preferences.nib
nibtool --use-oids --localizable-strings Preferences.nib > previous.strings
nibtool --use-oids --dictionary previous.strings -W Preferences_new.nib ../English.lproj/Preferences.nib
mv Preferences.nib Preferences_old.nib
mv Preferences_new.nib Preferences.nib
mv Preferences_old.nib/CVS Preferences.nib
cd ..
cd Dutch.lproj
rm -rf Preferences*.nib
cvs update -d Preferences.nib
nibtool --use-oids --localizable-strings Preferences.nib > previous.strings
nibtool --use-oids --dictionary previous.strings -W Preferences_new.nib ../English.lproj/Preferences.nib
mv Preferences.nib Preferences_old.nib
mv Preferences_new.nib Preferences.nib
mv Preferences_old.nib/CVS Preferences.nib
cd ..
cd Italian.lproj
rm -rf Preferences*.nib
cvs update -d Preferences.nib
nibtool --use-oids --localizable-strings Preferences.nib > previous.strings
nibtool --use-oids --dictionary previous.strings -W Preferences_new.nib ../English.lproj/Preferences.nib
mv Preferences.nib Preferences_old.nib
mv Preferences_new.nib Preferences.nib
mv Preferences_old.nib/CVS Preferences.nib
cd ..
cd Spanish.lproj
rm -rf Preferences*.nib
cvs update -d Preferences.nib
nibtool --use-oids --localizable-strings Preferences.nib > previous.strings
nibtool --use-oids --dictionary previous.strings -W Preferences_new.nib ../English.lproj/Preferences.nib
mv Preferences.nib Preferences_old.nib
mv Preferences_new.nib Preferences.nib
mv Preferences_old.nib/CVS Preferences.nib
cd ..