fehler korrektur
This commit is contained in:
parent
f7a869fbc8
commit
10aa4583f0
@ -16,8 +16,8 @@ msgstr ""
|
||||
"X-Poedit-SearchPath-1: wire_g\n"
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wire_g
|
||||
msgid "$activ powered."
|
||||
msgstr "$activ eingeschaltet."
|
||||
msgid "$activ powered"
|
||||
msgstr "$activ eingeschaltet"
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wire_g
|
||||
msgid "Cancel"
|
||||
@ -86,5 +86,5 @@ msgid "Selection"
|
||||
msgstr "Auswahl"
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wg_stop
|
||||
msgid "$wert Connection disconnected."
|
||||
msgstr "$wert Verbindung wurde getrennt."
|
||||
msgid "$wert Connection disconnected"
|
||||
msgstr "$wert Verbindung wurde getrennt"
|
||||
|
@ -14,7 +14,7 @@ msgstr ""
|
||||
"X-Poedit-Basepath: .\n"
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wire_g
|
||||
msgid "$activ powered."
|
||||
msgid "$activ powered"
|
||||
msgstr ""
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wire_g
|
||||
@ -71,6 +71,6 @@ msgid "Selection"
|
||||
msgstr ""
|
||||
|
||||
#: /home/punix/VSCodium/Wire-G/wg_stop
|
||||
msgid "$wert Connection disconnected."
|
||||
msgid "$wert Connection disconnected"
|
||||
msgstr ""
|
||||
|
||||
|
2
wg_stop
2
wg_stop
@ -33,7 +33,7 @@ export textdomaindir="/usr/share/locale"
|
||||
nmcli connection down $wert &> ${wg_wdir}.stop.txt
|
||||
if disable=$(grep -i 'deaktiviert\|disabled' ${wg_wdir}.stop.txt)
|
||||
then
|
||||
notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected."
|
||||
notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected"
|
||||
pkill yad
|
||||
|
||||
fi
|
||||
|
8
wire_g
8
wire_g
@ -43,7 +43,7 @@ wg_notify(){
|
||||
a_user=$(whoami)
|
||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
wg_pic="/home/$a_user/.icons/"
|
||||
notify-send --icon={wg_pic}wg-vpn.png $"$active powered."
|
||||
notify-send --icon=${wg_pic}wg-vpn.png $"$active powered"
|
||||
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
|
||||
nmcli con mod $active connection.autoconnect no
|
||||
# ab hier beginnt yad notify
|
||||
@ -60,7 +60,7 @@ wg_notify(){
|
||||
#Icon des Menübuttons definieren
|
||||
echo "icon:${wg_pic}wg-vpn.png" >&3
|
||||
#Name des Menüs definieren
|
||||
echo $"tooltip:$active activ" >&3
|
||||
echo "tooltip:$"$active activ" >&3
|
||||
|
||||
}
|
||||
export -f wg_notify
|
||||
@ -119,7 +119,7 @@ remove(){
|
||||
then
|
||||
yad --window-icon=${wg_pic}wg-trash.png \
|
||||
--image-on-top --image=${wg_pic}wg-info.png \
|
||||
--text=$"Your tunnel $selection was successfully deleted.\n" \
|
||||
--text=$"Your tunnel $selection was successfully deleted." \
|
||||
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
||||
--fixed --center --buttons-layout=center --borders=8 --center
|
||||
else
|
||||
@ -148,7 +148,7 @@ up_or_down(){
|
||||
if [[ -z $active ]]
|
||||
then
|
||||
yad --image-on-top --image=${wg_pic}wg-info.png \
|
||||
--text=$"There is no active tunnel that you could stop.\\n" \
|
||||
--text=$"There is no active tunnel that you could stop." \
|
||||
--text-align=center --button=$"OK" --title "Wire-G" \
|
||||
--fixed --center --buttons-layout=center --borders=8 --center
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user