From 10aa4583f08daa4ac1ea413b1b6fb23ef4631a69 Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 2 Nov 2023 20:58:08 +0100 Subject: [PATCH] fehler korrektur --- languages/de/wire-g.po | 8 ++++---- languages/de/wire-g.pot | 4 ++-- wg_stop | 2 +- wire_g | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/languages/de/wire-g.po b/languages/de/wire-g.po index 2a71796..5570c2a 100644 --- a/languages/de/wire-g.po +++ b/languages/de/wire-g.po @@ -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" diff --git a/languages/de/wire-g.pot b/languages/de/wire-g.pot index 1258467..57b1d46 100644 --- a/languages/de/wire-g.pot +++ b/languages/de/wire-g.pot @@ -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 "" diff --git a/wg_stop b/wg_stop index 8f032c7..46ac7a3 100755 --- a/wg_stop +++ b/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 diff --git a/wire_g b/wire_g index f4e7345..ed9dbe6 100755 --- a/wire_g +++ b/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