Commit 1642ff56 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Fix locales in install script

parent 19f6e2aa
......@@ -24,7 +24,7 @@ if [ ! -d "${config_path}" ]; then
fi
if [ ! -e "${config_path}/${portname}_loc" ]; then
SET_LANG=`zenity --title "Install $portname" --text "Select the language" --list --radiolist \
--column="Set" --column "Language:" \
--column="Set:" --column "Language:" \
TRUE "RUS" \
FALSE "ENG" `
echo "${SET_LANG}" > "${config_path}/${portname}_loc"
......@@ -181,7 +181,6 @@ else
fi
fi
export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk.conf"
echo "########################"
########################################################################
export def_pfx="${PORT_WINE_PATH}/data/dist/share/default_pfx/"
if [ ! -d "${def_pfx}" ]; then
......@@ -203,6 +202,7 @@ else
export PW_GAMEMODERUN=0
echo "Gamemod not installed!"
fi
echo "########################"
ADD_IN_START_PORTWINE
}
########################################################################
......
......@@ -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" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment