diff --git a/install b/install index 8758f29..3c35125 100755 --- a/install +++ b/install @@ -9,7 +9,12 @@ # Use without warranty! ## ######################################################## ######################################################## +Encoding=UTF-8 +# i18n - Internationalization - Internationalisierung + +export TEXTDOMAIN=install +export TEXTDOMAINDIR="Wire-G/languages" ############################################################################################################ ############################################################################################################ @@ -52,7 +57,7 @@ elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 fi else clear - echo $"Your system could not be determined." + echo $"Your System could not be determined." echo read -n 1 -s -r -p $"To close the window press a button" clear diff --git a/languages/de/install.po b/languages/de/install.po new file mode 100644 index 0000000..b34afce --- /dev/null +++ b/languages/de/install.po @@ -0,0 +1,64 @@ +# German translations for PACKAGE package. +# Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# punix , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-11-20 19:57+0100\n" +"PO-Revision-Date: 2023-11-20 20:03+0100\n" +"Last-Translator: punix \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.4\n" + +#: /home/punix/VSCodium/Wire-G/install:20 +#: /home/punix/VSCodium/Wire-G/install:26 +#: /home/punix/VSCodium/Wire-G/install:32 +#: /home/punix/VSCodium/Wire-G/install:47 +msgid "Wire-G is installed..." +msgstr "Wire-G wird installiert..." + +#: /home/punix/VSCodium/Wire-G/install:39 +msgid "Attention OpenSuse is not officially supported!" +msgstr "Achtung OpenSuse wird nicht offiziell unterstützt!" + +#: /home/punix/VSCodium/Wire-G/install:41 +msgid "yad must install them themselves when they continue!" +msgstr "yad müssen sie selbst installieren, wenn sie fortfahren!" + +#: /home/punix/VSCodium/Wire-G/install:42 +msgid "since these packages are officially not available." +msgstr "da diese Pakete offiziell nicht verfügbar sind." + +#: /home/punix/VSCodium/Wire-G/install:44 +msgid "Enter i for installation and enter key, break down with any other button ..." +msgstr "Geben Sie i für die installation ein und die Eingabetaste, Abbruch mit jeder anderen Taste ..." + +#: /home/punix/VSCodium/Wire-G/install:55 +msgid "Your system could not be determined." +msgstr "Ihr System konnte nicht ermittelt werden." + +#: /home/punix/VSCodium/Wire-G/install:57 +#: /home/punix/VSCodium/Wire-G/install:86 +msgid "To close the window press a button" +msgstr "Zum Fenster schließen eine Taste drücken" + +#: /home/punix/VSCodium/Wire-G/install:81 +msgid "Wire-G uses the standard language." +msgstr "Wire-G nutzt die Standardsprache." + +#: /home/punix/VSCodium/Wire-G/install:84 +msgid "Installation successfully!" +msgstr "Installation erfolgreich!" + +#: /home/punix/VSCodium/Wire-G/uninstall:31 +msgid "uninstall successfully!" +msgstr "deinstallation erfolgreich!" + diff --git a/languages/de/wire-g.mo b/languages/de/wire-g.mo index 3f90de2..68be7a1 100644 Binary files a/languages/de/wire-g.mo and b/languages/de/wire-g.mo differ diff --git a/languages/de/wire-g.po b/languages/de/wire-g.po index 7170ff7..389f370 100644 --- a/languages/de/wire-g.po +++ b/languages/de/wire-g.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-09 19:17+0100\n" -"PO-Revision-Date: 2023-11-09 19:32+0100\n" +"POT-Creation-Date: 2023-11-20 18:58+0100\n" +"PO-Revision-Date: 2023-11-20 19:26+0100\n" "Last-Translator: punix \n" "Language-Team: German \n" "Language: de\n" @@ -18,120 +18,123 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.4\n" -#: /home/punix/VSCodium/Wire-G/wire_g:52 -msgid "$active powered" +#: /home/punix/VSCodium/Wire-G/wire_g:53 +msgid "$ACTIVE powered" +msgstr "$ACTIVE eingeschaltet" + +#: /home/punix/VSCodium/Wire-G/wire_g:61 +msgid "$ACTIVE activ" msgstr "$active eingeschaltet" -#: /home/punix/VSCodium/Wire-G/wire_g:83 /home/punix/VSCodium/Wire-G/wire_g:145 -#: /home/punix/VSCodium/Wire-G/wire_g:212 -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:62 +msgid "" +"Wire-G open!/sbin/wire_g\n" +" |$ACTIVE stop!/sbin/wg_stop" +msgstr "" +"Wire-G öffnen!/sbin/wire_g\n" +" |$ACTIVE stop!/sbin/wg_stop" + +#: /home/punix/VSCodium/Wire-G/wire_g:79 msgid "Cancel" msgstr "Abbrechen" -#: /home/punix/VSCodium/Wire-G/wire_g:83 /home/punix/VSCodium/Wire-G/wire_g:117 +#: /home/punix/VSCodium/Wire-G/wire_g:79 msgid "Wireguard .conf Select file" msgstr "Wireguard .conf Datei auswählen" -#: /home/punix/VSCodium/Wire-G/wire_g:98 -msgid "Wire-G" +#: /home/punix/VSCodium/Wire-G/wire_g:89 +msgid "Tunnel already exists!" +msgstr "Tunnelname existiert schon!" + +#: /home/punix/VSCodium/Wire-G/wire_g:116 +msgid "" +"Oh, something went wrong. No valid Wireguard file. \\n\n" +"Here is an example: my_wireguard.conf" msgstr "" +"Oh, etwas ging schief. Keine gültige Wireguard Datei. \\n\n" +"Hier ein beispiel: my_wireguard.conf" -#: /home/punix/VSCodium/Wire-G/wire_g:100 -msgid "Tunnel name already exists." -msgstr "Tunnelname existiert schon." +#: /home/punix/VSCodium/Wire-G/wire_g:139 +msgid "Your Tunnel $SELECTION was successfully deleted." +msgstr "Ihr Tunnel $selection wurde erfolgreich gelöscht." -#: /home/punix/VSCodium/Wire-G/wire_g:117 -#: /home/punix/VSCodium/Wire-G/wire_g:145 -#: /home/punix/VSCodium/Wire-G/wire_g:164 -#: /home/punix/VSCodium/Wire-G/wire_g:170 -#: /home/punix/VSCodium/Wire-G/wire_g:195 -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:140 /home/punix/VSCodium/Wire-G/wire_g:146 msgid "OK" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:120 -msgid "" -"Oh, something went wrong. \\n\n" -"No valid Wireguard file. \\n \n" -"Here is an example: my_wireguard.conf \\n" -msgstr "" -"Oh da ging etwas schief. \\n\n" -"Keine gültige Wireguard Datei. \\n \n" -"Hier ein Beispiel: my_wireguard.conf \\n" - #: /home/punix/VSCodium/Wire-G/wire_g:145 -msgid "Delete" -msgstr "Löschen" - -#: /home/punix/VSCodium/Wire-G/wire_g:145 -#: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "" -"Activ Tunnel: $active \n" -"----------------------------------------------------------------------------------" -" \n" -"If no tunnels are listed, \n" -"so they have to import their tunnel beforehand." -msgstr "" -"Aktiver Tunnel: $active \n" -"----------------------------------------------------------------------------------" -" \n" -"Sollten keine Tunnel aufgelistet sein, \n" -"so müssen sie ihren Tunnel zuvor importieren." - -#: /home/punix/VSCodium/Wire-G/wire_g:163 -msgid "Your tunnel $selection was successfully deleted." -msgstr "Ihr Tunnel $selection wurde erfolgreich gelöscht." - -#: /home/punix/VSCodium/Wire-G/wire_g:169 -msgid "Oh something went wrong.\\nPlease delete tunnel in the network manager." +msgid "Oh something went wrong.\\nPlease delete Tunnel in the network manager." msgstr "Oh etwas ging schief.\\nBitte Tunnel im Networkmanager löschen." -#: /home/punix/VSCodium/Wire-G/wire_g:194 -msgid "There is no active tunnel that you could stop." +#: /home/punix/VSCodium/Wire-G/wire_g:166 +msgid "There is no active Tunnel that you could stop." msgstr "Es gibt keinen aktiven Tunnel den man stoppen könnte." -#: /home/punix/VSCodium/Wire-G/wire_g:212 -msgid "Import" +#: /home/punix/VSCodium/Wire-G/wire_g:212 /home/punix/VSCodium/Wire-G/wire_g:230 +#: /home/punix/VSCodium/Wire-G/wire_g:248 /home/punix/VSCodium/Wire-G/wire_g:266 +msgid "Autoconnect on PC Start:CHK" +msgstr "Autoconnect bei PC Start:CHK" + +#: /home/punix/VSCodium/Wire-G/wire_g:213 /home/punix/VSCodium/Wire-G/wire_g:231 +#: /home/punix/VSCodium/Wire-G/wire_g:249 /home/punix/VSCodium/Wire-G/wire_g:267 +msgid "Autoupdate:CHK" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:216 /home/punix/VSCodium/Wire-G/wire_g:234 +#: /home/punix/VSCodium/Wire-G/wire_g:252 /home/punix/VSCodium/Wire-G/wire_g:270 +msgid "" +"Wire-G Author: Désiré Werner Menrath \\n \n" +"E-Mail: polunga40@unity-mail.de \\n\n" +"At all Tunnels, the auto start is disabled. \\n\n" +"Version: $VERSION \\n\n" +"Use without warranty. \\n\n" +"Download Wire-G \\n" +msgstr "" +"Wire-G Author: Désiré Werner Menrath \\n \n" +"E-Mail: polunga40@unity-mail.de \\n\n" +"Bei allen Tunnel wird der Autostart deaktiviert. \\n\n" +"Version: $VERSION \\n\n" +"Benutzung ohne Gewähr. \\n\n" +"Download Wire-G \\n" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Start:0" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Stop:2" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Import:3" msgstr "Importieren" -#: /home/punix/VSCodium/Wire-G/wire_g:212 -msgid "Wire-G Stop" -msgstr "" - -#: /home/punix/VSCodium/Wire-G/wire_g:212 -msgid "" -"Wire-G Author: Désiré Werner Menrath " -"\\n \n" -"E-Mail: polunga40@unity-mail.de \\n\n" -"At all tunnels, the auto start is disabled. \\n\n" -"Version: $version \\n\n" -"Use without warranty. \\n\n" -"Download Wire-G \\n" -msgstr "" -"Wire-G Author: Désiré Werner Menrath " -"\\n \n" -"E-Mail: polunga40@unity-mail.de \\n\n" -"Bei allen Tunnel wird der Autostart deaktiviert. \\n\n" -"Version: $version \\n\n" -"Benutzung ohne Gewähr. \\n\n" -"Download Wire-G \\n" - -#: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "More" -msgstr "Mehr" - -#: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "Remove" +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Remove:4" msgstr "Entfernen" -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "About:5" +msgstr "Ãœber" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 msgid "Selection" msgstr "Auswahl" -#: /home/punix/VSCodium/Wire-G/wg_stop:38 -msgid "$wert Connection disconnected" -msgstr "$wert Verbindung wurde getrennt" +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "" +"Activ Tunnel: $ACTIVE \n" +"-----------------------------------------------------------------------------------------------------" +" \n" +"If no Tunnels are listed, \n" +"so they have to import their Tunnel beforehand." +msgstr "" +"Aktiver Tunnel: $ACTIVE \n" +"-----------------------------------------------------------------------------------------------------" +" \n" +"Sollten keine Tunnel aufgelistet sein, \n" +"so müssen sie ihren Tunnel zuvor importieren." + +#: /home/punix/VSCodium/Wire-G/wg_stop:40 +msgid "$VALUE Connection disconnected" +msgstr "$VALUE Verbindung getrennt" diff --git a/languages/de/wire-g.pot b/languages/de/wire-g.pot index 3e1258a..2c099bf 100644 --- a/languages/de/wire-g.pot +++ b/languages/de/wire-g.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-11-09 19:17+0100\n" +"POT-Creation-Date: 2023-11-20 18:58+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,104 +17,117 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: /home/punix/VSCodium/Wire-G/wire_g:52 -msgid "$active powered" +#: /home/punix/VSCodium/Wire-G/wire_g:53 +msgid "$ACTIVE powered" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:83 /home/punix/VSCodium/Wire-G/wire_g:145 -#: /home/punix/VSCodium/Wire-G/wire_g:212 -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:61 +msgid "$ACTIVE activ" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:62 +msgid "" +"Wire-G open!/sbin/wire_g\n" +" |$ACTIVE stop!/sbin/wg_stop" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:79 msgid "Cancel" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:83 /home/punix/VSCodium/Wire-G/wire_g:117 +#: /home/punix/VSCodium/Wire-G/wire_g:79 msgid "Wireguard .conf Select file" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:98 -msgid "Wire-G" +#: /home/punix/VSCodium/Wire-G/wire_g:89 +msgid "Tunnel already exists!" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:100 -msgid "Tunnel name already exists." +#: /home/punix/VSCodium/Wire-G/wire_g:116 +msgid "" +"Oh, something went wrong. No valid Wireguard file. \\n\n" +"Here is an example: my_wireguard.conf" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:117 -#: /home/punix/VSCodium/Wire-G/wire_g:145 -#: /home/punix/VSCodium/Wire-G/wire_g:164 -#: /home/punix/VSCodium/Wire-G/wire_g:170 -#: /home/punix/VSCodium/Wire-G/wire_g:195 -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:139 +msgid "Your Tunnel $SELECTION was successfully deleted." +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:140 +#: /home/punix/VSCodium/Wire-G/wire_g:146 msgid "OK" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:120 -msgid "" -"Oh, something went wrong. \\n\n" -"No valid Wireguard file. \\n \n" -"Here is an example: my_wireguard.conf \\n" +#: /home/punix/VSCodium/Wire-G/wire_g:145 +msgid "Oh something went wrong.\\nPlease delete Tunnel in the network manager." msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:145 -msgid "Delete" +#: /home/punix/VSCodium/Wire-G/wire_g:166 +msgid "There is no active Tunnel that you could stop." msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:145 +#: /home/punix/VSCodium/Wire-G/wire_g:212 +#: /home/punix/VSCodium/Wire-G/wire_g:230 #: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "" -"Activ Tunnel: $active \n" -"----------------------------------------------------------------------------------" -" \n" -"If no tunnels are listed, \n" -"so they have to import their tunnel beforehand." +#: /home/punix/VSCodium/Wire-G/wire_g:266 +msgid "Autoconnect on PC Start:CHK" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:163 -msgid "Your tunnel $selection was successfully deleted." +#: /home/punix/VSCodium/Wire-G/wire_g:213 +#: /home/punix/VSCodium/Wire-G/wire_g:231 +#: /home/punix/VSCodium/Wire-G/wire_g:249 +#: /home/punix/VSCodium/Wire-G/wire_g:267 +msgid "Autoupdate:CHK" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:169 -msgid "Oh something went wrong.\\nPlease delete tunnel in the network manager." -msgstr "" - -#: /home/punix/VSCodium/Wire-G/wire_g:194 -msgid "There is no active tunnel that you could stop." -msgstr "" - -#: /home/punix/VSCodium/Wire-G/wire_g:212 -msgid "Import" -msgstr "" - -#: /home/punix/VSCodium/Wire-G/wire_g:212 -msgid "Wire-G Stop" -msgstr "" - -#: /home/punix/VSCodium/Wire-G/wire_g:212 +#: /home/punix/VSCodium/Wire-G/wire_g:216 +#: /home/punix/VSCodium/Wire-G/wire_g:234 +#: /home/punix/VSCodium/Wire-G/wire_g:252 +#: /home/punix/VSCodium/Wire-G/wire_g:270 msgid "" "Wire-G Author: Désiré Werner Menrath " "\\n \n" "E-Mail: polunga40@unity-mail.de \\n\n" -"At all tunnels, the auto start is disabled.At all Tunnels, the auto start is disabled. \\n\n" -"Version: $version \\n\n" +"Version: $VERSION \\n\n" "Use without warranty. \\n\n" -"Download Wire-G \\n" +"Download Wire-G \\n" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "More" +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Start:0" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:248 -msgid "Remove" +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Stop:2" msgstr "" -#: /home/punix/VSCodium/Wire-G/wire_g:248 +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Import:3" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "Remove:4" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "About:5" +msgstr "" + +#: /home/punix/VSCodium/Wire-G/wire_g:310 msgid "Selection" msgstr "" -#: /home/punix/VSCodium/Wire-G/wg_stop:38 -msgid "$wert Connection disconnected" +#: /home/punix/VSCodium/Wire-G/wire_g:310 +msgid "" +"Activ Tunnel: $ACTIVE \n" +"-----------------------------------------------------------------------------------------------------" +" \n" +"If no Tunnels are listed, \n" +"so they have to import their Tunnel beforehand." msgstr "" - +#: /home/punix/VSCodium/Wire-G/wg_stop:40 +msgid "$VALUE Connection disconnected" diff --git a/uninstall b/uninstall index be8a2fa..a9cc94d 100755 --- a/uninstall +++ b/uninstall @@ -9,7 +9,12 @@ # Use without warranty! ## ######################################################## ######################################################## +Encoding=UTF-8 +# i18n - Internationalization - Internationalisierung +export TEXTDOMAIN=install +export TEXTDOMAINDIR="Wire-G/languages" +######################################################## cd || exit rm -f /home/"$USER"/.icons/wg-active.png wg-stop.png wg-vpn.png wg-import.png wg-trash.png wg-info.png wg-vpn-info.png 2>&1 wait; diff --git a/wg_stop b/wg_stop index 9570c71..1f4d439 100755 --- a/wg_stop +++ b/wg_stop @@ -37,7 +37,7 @@ WG_PIC="/home/$USER/.icons/" --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons \ --timeout 2 --timeout-indicator=bottom \ - --text=$""$VALUE" Connection disconnected" + --text=$"$VALUE Connection disconnected" fi done IFS=$'\n' lines=( $(cat ${WG_WDIR}for-kill_pid.txt) ) diff --git a/wire_g b/wire_g index 93a96dd..5ba192b 100755 --- a/wire_g +++ b/wire_g @@ -50,7 +50,7 @@ wg_notify(){ --undecorated --borders=8 --skip-taskbar \ --text-align=center --no-buttons --auto-close \ --timeout 1 \ - --text=$""$ACTIVE" powered" + --text=$"$ACTIVE powered" # autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) ) nmcli con mod "$lines" connection.autoconnect no