forked from CastroFidel/PortWINE
drop check ru_RU.UTF-8
This commit is contained in:
parent
dfbc3c244f
commit
7558c40042
@ -51,24 +51,19 @@ change_locale () {
|
||||
echo "en" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
|
||||
fi
|
||||
|
||||
if [[ -z "${LANG}" ]] ; then
|
||||
export LANG=C
|
||||
LANGUAGE="en"
|
||||
if [[ ! -z "${LANGUAGE}" ]] \
|
||||
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
|
||||
echo ""
|
||||
else
|
||||
if [[ ! -z "${LANGUAGE}" ]] \
|
||||
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
|
||||
echo ""
|
||||
else
|
||||
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
|
||||
SET_LANG=$("${pw_yad_v13_0}" --title "LANGUAGE" --text "Select the language:" --list --radiolist \
|
||||
--column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=150)
|
||||
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
|
||||
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
|
||||
if [[ ! -z "${SET_LANG}" ]]
|
||||
then LANGUAGE=${SET_LANG}
|
||||
else exit 1
|
||||
fi
|
||||
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
|
||||
SET_LANG=$("${pw_yad_v13_0}" --title "LANGUAGE" --text "Select the language:" --list --radiolist \
|
||||
--column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=150)
|
||||
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
|
||||
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
|
||||
if [[ ! -z "${SET_LANG}" ]]
|
||||
then LANGUAGE=${SET_LANG}
|
||||
else exit 1
|
||||
fi
|
||||
fi
|
||||
export LANGUAGE
|
||||
|
@ -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
|
||||
then
|
||||
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}"
|
||||
pw_stop_progress_bar
|
||||
kill_portwine
|
||||
|
Loading…
Reference in New Issue
Block a user