Commit 5bd03731 authored by Mikhail Tergoev's avatar Mikhail Tergoev

update lang script

parent 3e540c46
...@@ -5,15 +5,14 @@ ...@@ -5,15 +5,14 @@
unset update_loc unset update_loc
if [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then if [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
update_loc=$(cat "${PORT_WINE_TMP_PATH}/PortProton_loc") update_loc=$(cat "${PORT_WINE_TMP_PATH}/PortProton_loc")
export update_loc
fi fi
if ! check_flatpak \ if [[ -z "${LANG}" ]] ; then
&& [[ -z "${LANG}" ]] ; then
export LANG=C export LANG=C
export update_loc="ENG" update_loc="ENG"
else else
if [[ "${update_loc}" == "RUS" || "${update_loc}" == "ENG" ]] && [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then if [[ "${update_loc}" == "RUS" || "${update_loc}" == "ENG" ]] \
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
echo "" echo ""
else else
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad" [[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
...@@ -23,11 +22,12 @@ else ...@@ -23,11 +22,12 @@ else
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')" SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc" echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
if [[ ! -z "${SET_LANG}" ]] if [[ ! -z "${SET_LANG}" ]]
then export update_loc=${SET_LANG} then update_loc=${SET_LANG}
else exit 1 else exit 1
fi fi
fi fi
fi fi
export update_loc
if [[ "${update_loc}" == "RUS" ]] ; then if [[ "${update_loc}" == "RUS" ]] ; then
# check_flatpak && export LANG=ru_RU.UTF-8 # check_flatpak && export LANG=ru_RU.UTF-8
......
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