2007-02-17 20:14:15 +00:00
|
|
|
language=$1
|
|
|
|
|
2007-02-17 20:16:50 +00:00
|
|
|
if [ $language = "English" ]; then
|
|
|
|
echo "You cannot load English."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! [ -d Localizations/$language ]; then
|
|
|
|
echo "You do not have that language available."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2007-02-17 20:14:15 +00:00
|
|
|
if ! [ -d $language.lproj ]; then
|
|
|
|
mkdir $language.lproj
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! [ -d Prferences/General/$language.lproj ]; then
|
|
|
|
mkdir Preferences/General/$language.lproj
|
|
|
|
fi
|
|
|
|
|
|
|
|
nibtool -d Localizations/$language/MainUI.strings English.lproj/MainMenu.nib -W $language.lproj/MainMenu.nib
|
2007-05-26 14:49:05 +00:00
|
|
|
nibtool -d Localizations/$language/OpenURLPanel.strings English.lproj/OpenURLPanel.nib -W $language.lproj/OpenURLPanel.nib
|
2007-02-17 20:14:15 +00:00
|
|
|
nibtool -d Localizations/$language/PreferencesUI.strings Preferences/General/English.lproj/Preferences.nib -W Preferences/General/$language.lproj/Preferences.nib
|
|
|
|
cp Localizations/$language/MainProgram.strings $language.lproj/Localizable.strings
|
2007-06-03 14:54:21 +00:00
|
|
|
cp Localizations/$language/PreferencesProgram.strings Preferences/General/$language.lproj/Localizable.strings
|
2007-06-03 14:59:11 +00:00
|
|
|
cp Localizations/$language/Credits.html $language.lproj/Credits.html
|
2007-06-03 15:07:12 +00:00
|
|
|
cp -r English.lproj/Help $language.lproj/
|
|
|
|
cp Localizations/$language/help.html $language.lproj/Help/index.html
|
2007-06-03 14:54:21 +00:00
|
|
|
|
2007-02-17 20:14:15 +00:00
|
|
|
|