gettext test

This commit is contained in:
Désiré Werner Menrath 2023-11-02 13:46:56 +01:00
parent 7b5050ef0d
commit 5c05bd7762
3 changed files with 10 additions and 7 deletions

Binary file not shown.

View File

@ -1,16 +1,19 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: Desire Werner Menrath\n"
"POT-Creation-Date: 2023-11-02 10:06+0100\n" "POT-Creation-Date: 2023-11-02 10:06+0100\n"
"PO-Revision-Date: 2023-11-02 10:10+0100\n" "PO-Revision-Date: 2023-11-02 13:43+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: Desire Werner Menrath polunga40@unity-mail.de https://git."
"lunix.dedydn.io\n"
"Language: de\n" "Language: de\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4\n" "X-Generator: Poedit 3.4\n"
"X-Poedit-Basepath: .\n" "X-Poedit-Basepath: ../..\n"
"X-Poedit-SearchPath-0: wg_stop\n"
"X-Poedit-SearchPath-1: wire_g\n"
#: /home/punix/VSCodium/Wire-G/wire_g:46 #: /home/punix/VSCodium/Wire-G/wire_g:46
msgid "powered" msgid "powered"

6
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 powered" notify-send --icon=${wg_pic}wg-vpn.png "$active gettext 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
@ -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