test mit translate

This commit is contained in:
Désiré Werner Menrath 2023-11-02 18:51:34 +01:00
parent e9e4bf3e2c
commit 271718166f
3 changed files with 18 additions and 18 deletions

View File

@ -16,8 +16,8 @@ msgstr ""
"X-Poedit-SearchPath-1: wire_g\n" "X-Poedit-SearchPath-1: wire_g\n"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "powered" msgid "$activ powered"
msgstr "eingeschaltet" msgstr "$activ eingeschaltet"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "Cancel" msgid "Cancel"
@ -32,20 +32,20 @@ msgid "Delete"
msgstr "Löschen" msgstr "Löschen"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "Your tunnel $selection was successfully deleted" msgid "Your tunnel $selection was successfully deleted.\\n"
msgstr "Ihr Tunnel $selection wurde erfolgreich gelöscht.\\n" msgstr "Ihr Tunnel $selection wurde erfolgreich gelöscht.\\n"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "" msgid ""
"Oh something went wrong.\n" "Oh something went wrong.\\n"
"Please delete tunnel in the network manager." "Please delete tunnel in the network manager.\\n"
msgstr "" msgstr ""
"Oh etwas ging schief.\\n\n" "Oh etwas ging schief.\\n"
"Bitte Tunnel im Networkmanager löschen." "Bitte Tunnel im Networkmanager löschen.\\n"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "There is no active tunnel that you could stop.\n" msgid "There is no active tunnel that you could stop.\\n"
msgstr "Es gibt keinen aktiven Tunnel den man stoppen könnte.\n" msgstr "Es gibt keinen aktiven Tunnel den man stoppen könnte.\\n"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "" msgid ""

View File

@ -14,7 +14,7 @@ msgstr ""
"X-Poedit-Basepath: .\n" "X-Poedit-Basepath: .\n"
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "powered" msgid "$activ powered"
msgstr "" msgstr ""
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
@ -34,16 +34,16 @@ msgid "Delete"
msgstr "" msgstr ""
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "Your tunnel $selection was successfully deleted" msgid "Your tunnel $selection was successfully deleted.\\n"
msgstr "" msgstr ""
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "Oh something went wrong.\n" msgid "Oh something went wrong.\\n"
"Please delete tunnel in the network manager." "Please delete tunnel in the network manager.\\n"
msgstr "" msgstr ""
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g
msgid "There is no active tunnel that you could stop.\n" msgid "There is no active tunnel that you could stop.\\n"
msgstr "" msgstr ""
#: /home/punix/VSCodium/Wire-G/wire_g #: /home/punix/VSCodium/Wire-G/wire_g

8
wire_g
View File

@ -43,7 +43,7 @@ wg_notify(){
a_user=$(whoami) a_user=$(whoami)
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
wg_pic="/home/$a_user/.icons/" wg_pic="/home/$a_user/.icons/"
notify-send --icon=${wg_pic}wg-vpn.png "$active gettext 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 # autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
nmcli con mod $active connection.autoconnect no nmcli con mod $active connection.autoconnect no
# ab hier beginnt yad notify # ab hier beginnt yad notify
@ -148,7 +148,7 @@ up_or_down(){
if [[ -z $active ]] if [[ -z $active ]]
then then
yad --image-on-top --image=${wg_pic}wg-info.png \ 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.\\n" \
--text-align=center --button=$"OK" --title "Wire-G" \ --text-align=center --button=$"OK" --title "Wire-G" \
--fixed --center --buttons-layout=center --borders=8 --center --fixed --center --buttons-layout=center --borders=8 --center
else else
@ -208,10 +208,10 @@ if selection=$(yad --no-click --list \
--button=$"More":"bash -c more" --button=$"Remove":"bash -c remove" --separator="" \ --button=$"More":"bash -c more" --button=$"Remove":"bash -c remove" --separator="" \
--window-icon=${wg_pic}wg-vpn.png \ --window-icon=${wg_pic}wg-vpn.png \
--borders=8 --image-on-top --image=${wg_pic}wg-active.png \ --borders=8 --image-on-top --image=${wg_pic}wg-active.png \
--text="<b>_(Activ Tunnel: </b> <span color='#0fad0a'><b>$active</b></span> --text="<b>Activ Tunnel: </b> <span color='#0fad0a'><b>$active</b></span>
<b>----------------------------------------------------------------------------------</b> <b>----------------------------------------------------------------------------------</b>
<b>If no tunnels are listed,</b> <b>If no tunnels are listed,</b>
<b>so they have to import their tunnel beforehand.)</b>" \ <b>so they have to import their tunnel beforehand.</b>" \
--column=$"Selection" $tunnel) --column=$"Selection" $tunnel)
then then