Commit 7558c400 authored by Mikhail Tergoev's avatar Mikhail Tergoev

drop check ru_RU.UTF-8

parent dfbc3c24
...@@ -51,24 +51,19 @@ change_locale () { ...@@ -51,24 +51,19 @@ change_locale () {
echo "en" > "${PORT_WINE_TMP_PATH}/PortProton_loc" echo "en" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
fi fi
if [[ -z "${LANG}" ]] ; then if [[ ! -z "${LANGUAGE}" ]] \
export LANG=C && [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
LANGUAGE="en" echo ""
else else
if [[ ! -z "${LANGUAGE}" ]] \ [[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then SET_LANG=$("${pw_yad_v13_0}" --title "LANGUAGE" --text "Select the language:" --list --radiolist \
echo "" --column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" \
else --window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=150)
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad" SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
SET_LANG=$("${pw_yad_v13_0}" --title "LANGUAGE" --text "Select the language:" --list --radiolist \ echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
--column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" \ if [[ ! -z "${SET_LANG}" ]]
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=150) then LANGUAGE=${SET_LANG}
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')" else exit 1
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
if [[ ! -z "${SET_LANG}" ]]
then LANGUAGE=${SET_LANG}
else exit 1
fi
fi fi
fi fi
export LANGUAGE export LANGUAGE
......
...@@ -14,7 +14,7 @@ start_portwine ...@@ -14,7 +14,7 @@ start_portwine
if try_download "https://installer.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/${WOSB_VERSION}/bin/installer.exe" "${PW_AUTOINSTALL_EXE}" no_mirror if try_download "https://installer.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/${WOSB_VERSION}/bin/installer.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
then then
pw_start_progress_bar_block "Installing World of Sea Battle." pw_start_progress_bar_block "Installing World of Sea Battle."
pw_run "${PW_AUTOINSTALL_EXE}" pw_run "${PW_AUTOINSTALL_EXE}"
try_remove_file "${PW_AUTOINSTALL_EXE}" try_remove_file "${PW_AUTOINSTALL_EXE}"
pw_stop_progress_bar pw_stop_progress_bar
kill_portwine kill_portwine
......
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