forked from CastroFidel/PortWINE
update change locale window
This commit is contained in:
parent
c6359f653b
commit
8020bf575c
@ -54,10 +54,20 @@ change_locale () {
|
|||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
|
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
|
||||||
SET_LANG=$("${pw_yad_v13_0}" --title "LANGUAGE" --text "Select the language:" --list --radiolist \
|
SET_LANG=(
|
||||||
--column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" FALSE "es" \
|
"${pw_yad_v13_0}" --list
|
||||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=195)
|
--title="Select language for PortProton"
|
||||||
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
|
--column="Language" --column=""
|
||||||
|
--width=400 --height=200
|
||||||
|
|
||||||
|
"Russian (Русский)" ru
|
||||||
|
"English" en
|
||||||
|
"Spanish (Español・Española)" es
|
||||||
|
)
|
||||||
|
|
||||||
|
out=$("${SET_LANG[@]}")
|
||||||
|
[ -n "$out" ] || return
|
||||||
|
SET_LANG=$(echo "$out" | cut -d'|' -f2)
|
||||||
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 LANGUAGE=${SET_LANG}
|
then LANGUAGE=${SET_LANG}
|
||||||
|
Loading…
Reference in New Issue
Block a user