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
12 ORIGINAL_NIBNAME
=$1-original
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
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
52 rm -rf $ORIGINAL_NIBNAME.nib
53 rm -rf $NEW_NIBNAME.nib
54 rm $NIBNAME.nib
/info.nib