PW_SET_LANG=`zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
if[-z"${PW_SET_LANG}"];then
PW_SET_LANG=$(zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
--column="Set:"--column"Language:"\
TRUE "Russian"\
FALSE "English"` 2> /dev/null
if[$?-eq 1 ];then exit 1 ;fi
FALSE "English")
["$?"!="0"]&&exit 1
case$PW_SET_LANGin
"Russian")
INFO_TEXT="Вы запустили установщик PortWINE ${portname} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями."> /dev/null 2>&1 ;;
INFO_TEXT="Вы запустили установщик PortWINE ${portname} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями.";;
"English")
INFO_TEXT="You run the installer PortWINE ${portname} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms."> /dev/null 2>&1 ;;
INFO_TEXT="You run the installer PortWINE ${portname} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms.";;
inst1=`zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=220 \
inst1=`zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=220 \
--column="Set..."--column"Path:"\
TRUE "${deflink}"\
FALSE "Other path..."` 2> /dev/null
if[$?-eq 1 ];then exit 1;fi
case$inst1in
"${deflink}")
D_PATH="${deflink}";;
"Other path...")
D_PATH=`zenity --file-selection--directory--title="Select the path..."`
D_PATH="${D_PATH}/${portname}";;
esac;;
esac
if[$?-eq 1 ];then echo"error"&&exit 1 ;fi
fi
case$PW_SET_LANGin
"Russian")
inst1=$(zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=250 \
inst1=$(zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=250 \
--column="Set..."--column"Path:"\
TRUE "${def_path}"\
FALSE "Other path...")
["$?"!="0"]&&exit 1
case$inst1in
"${def_path}")
D_PATH="${def_path}";;
"Other path...")
D_PATH="$(zenity --file-selection--directory--title="Select the path..." &>/dev/null)";;