Error checking when loading localization.

CQTexperiment
vspader 2007-02-17 20:16:50 +00:00
parent d828043340
commit 7f54e2fc9e
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
language=$1
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
if ! [ -d $language.lproj ]; then
mkdir $language.lproj
fi