This should fix processing of gaim img tags which use an apostrophe instead of a...
[adiumx.git] / Utilities / manual_nib_update
blob3a98e36e3ff2552c727d12c6e45e6b55a317dcd3
1 #!/bin/sh
2 ####
4 # Usage: From the directory above the .lproj folders:
5 # manual_nib_update NIB_NAME
7 # NIB_NAME should not include the .nib extension and should
8 # have its new form in the English.lproj folder
9 ####
11 NIBNAME=$1
12 ORIGINAL_NIBNAME=$1-original
13 NEW_NIBNAME=$1-new
15 for lang in \
16 Catalan \
17 Danish \
18 Dutch \
19 French \
20 German \
21 Italian \
22 Japanese \
23 Norwegian \
24 Russian \
25 Spanish \
26 Swedish \
27 cs \
28 is \
29 pt_BR \
30 zh_CN \
31 zh_TW \
32 ; do
34 if [ -d $lang.lproj ] ; then
35 # Keep the original around for its localization, our entire goal
36 mkdir $lang.lproj/$NIBNAME-original.nib
37 cp $lang.lproj/$NIBNAME.nib/*.nib $lang.lproj/$NIBNAME-original.nib
39 # Copy the English nib in
40 cp English.lproj/$NIBNAME.nib/*.nib $lang.lproj/$NIBNAME.nib
41 cd $lang.lproj
43 # Bring the previous translations over into a NEW_NIBNAME nib
44 nibtool -O -L $ORIGINAL_NIBNAME.nib > d.d
45 nibtool -d d.d -O -W $NEW_NIBNAME.nib $NIBNAME.nib
47 # Copy NEW_NIBNAME's nib files into NIBNAME. This is to avoid smashing .svn folders
48 cp $NEW_NIBNAME.nib/*.nib $NIBNAME.nib
50 # Cleanup
51 rm d.d
52 rm -rf $ORIGINAL_NIBNAME.nib
53 rm -rf $NEW_NIBNAME.nib
54 rm $NIBNAME.nib/info.nib
55 cd ..
56 echo Updated $lang
59 done