forked from CastroFidel/PortWINE
Fix locales in install script
This commit is contained in:
@ -17,7 +17,7 @@ export port_ver=XX
|
||||
########################################################################
|
||||
export PROGS_INST=""
|
||||
export vexit=0
|
||||
for PROGS in "wget" "curl" "zenity" "tar" "xterm"
|
||||
for PROGS in "wget" "curl" "zenity" "tar"
|
||||
do
|
||||
if [ ! -x "`which "${PROGS}" 2>/dev/null`" ];then
|
||||
PROGS_INST="${PROGS_INST} ${PROGS}"
|
||||
@ -37,7 +37,7 @@ deflink="/home/${USER}/PortWINE/${portname}"
|
||||
[ $(id -u) -eq 0 ] && echo "Do not run the script from the superuser!" && zenity --error --text "Do not run the script from the superuser!" 2> /dev/null && exit 1
|
||||
########################################################################
|
||||
SET_LANG=`zenity --title "Install $portname" --text "Select the installation language" --list --radiolist \
|
||||
--column="Set" --column "Language:" \
|
||||
--column="Set:" --column "Language:" \
|
||||
TRUE "Russian" \
|
||||
FALSE "English" ` 2> /dev/null
|
||||
if [ $? -eq 1 ];then exit 1; fi
|
||||
@ -81,7 +81,7 @@ esac
|
||||
if [ $? -eq 1 ];then echo "error" && exit 1; fi
|
||||
########################################################################
|
||||
case $SET_LANG in
|
||||
"Русский")
|
||||
"Russian")
|
||||
zen() {
|
||||
zenity --progress --title="Установка..." --text="Настройка ${portname}" --pulsate --auto-close --auto-kill --width=450 > /dev/null 2>&1
|
||||
} ;;
|
||||
@ -117,7 +117,7 @@ fi
|
||||
mkdir -p "${PORT_WINE_PATH}/data/tmp"
|
||||
echo "${port_ver}" > "${PORT_WINE_PATH}/data/tmp/${portname}_ver"
|
||||
case $SET_LANG in
|
||||
"Русский")
|
||||
"Russian")
|
||||
echo "RUS" > "${PORT_WINE_PATH}/data/tmp/${portname}_loc" ;;
|
||||
"English")
|
||||
echo "ENG" > "${PORT_WINE_PATH}/data/tmp/${portname}_loc" ;;
|
||||
|
Reference in New Issue
Block a user