Scripts version 2198

This commit is contained in:
Mikhail Tergoev
2023-06-02 15:25:01 +03:00
parent 1a9631af0f
commit 9c88e6c07f
6 changed files with 38 additions and 26 deletions

View File

@ -1,14 +1,22 @@
#!/usr/bin/env bash
# Author: linux-gaming.ru
unset update_loc
if [[ -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ]] ; then
read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc"
export update_loc=${update_loc}
fi
if [[ "${update_loc}" == "RUS" || "${update_loc}" == "ENG" ]] && [[ -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ]] ; then
echo "language ${update_loc}"
else
SET_LANG=`zenity --title "LAUNGUAGE" --text "Select the language" --list --radiolist \
--column="Set:" --column "Choose language:" TRUE "RUS" FALSE "ENG" `
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc"
export update_loc=${SET_LANG}
if [[ ! -z "${SET_LANG}" ]]
then export update_loc=${SET_LANG}
else exit 1
fi
fi
if [ "${update_loc}" = "RUS" ]