Error checking when loading localization.
parent
d828043340
commit
7f54e2fc9e
|
@ -1,5 +1,15 @@
|
||||||
language=$1
|
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
|
if ! [ -d $language.lproj ]; then
|
||||||
mkdir $language.lproj
|
mkdir $language.lproj
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue