Wire-G Skripte für translate vorbereitet

This commit is contained in:
2023-11-20 18:25:36 +01:00
parent 92adc8f898
commit 4a27d34e17
2 changed files with 22 additions and 22 deletions

View File

@ -29,12 +29,12 @@ nmcli connection up "$WG_START"
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
case $LANG in
de_DE.UTF-8) OPEN=öffnen ;;
*) OPEN=open ;;
esac
# case $LANG in
#
# de_DE.UTF-8) OPEN=öffnen ;;
#
# *) OPEN=open ;;
# esac
yad --image-on-top --image=${WG_PIC}wg-vpn-info.png \
--undecorated --borders=8 --skip-taskbar \
--text-align=center --no-buttons --auto-close \
@ -49,7 +49,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
--image="${WG_PIC}wg-vpn.png" \
--icon-size=32 --no-middle \
--text=$"$ACTIVE activ" \
--menu="Wire-G $OPEN!/sbin/wire_g
--menu=$"Wire-G open!/sbin/wire_g
|$ACTIVE stop!/sbin/wg_stop" \
--command="menu" &