fehler korrektur
This commit is contained in:
		| @@ -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 "$activ powered." | msgid "$activ powered" | ||||||
| msgstr "$activ eingeschaltet." | msgstr "$activ eingeschaltet" | ||||||
|  |  | ||||||
| #: /home/punix/VSCodium/Wire-G/wire_g | #: /home/punix/VSCodium/Wire-G/wire_g | ||||||
| msgid "Cancel" | msgid "Cancel" | ||||||
| @@ -86,5 +86,5 @@ msgid "Selection" | |||||||
| msgstr "Auswahl" | msgstr "Auswahl" | ||||||
|  |  | ||||||
| #: /home/punix/VSCodium/Wire-G/wg_stop | #: /home/punix/VSCodium/Wire-G/wg_stop | ||||||
| msgid "$wert Connection disconnected." | msgid "$wert Connection disconnected" | ||||||
| msgstr "$wert Verbindung wurde getrennt." | msgstr "$wert Verbindung wurde getrennt" | ||||||
|   | |||||||
| @@ -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 "$activ powered." | msgid "$activ powered" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: /home/punix/VSCodium/Wire-G/wire_g | #: /home/punix/VSCodium/Wire-G/wire_g | ||||||
| @@ -71,6 +71,6 @@ msgid "Selection" | |||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: /home/punix/VSCodium/Wire-G/wg_stop | #: /home/punix/VSCodium/Wire-G/wg_stop | ||||||
| msgid "$wert Connection disconnected." | msgid "$wert Connection disconnected" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								wg_stop
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wg_stop
									
									
									
									
									
								
							| @@ -33,7 +33,7 @@ export textdomaindir="/usr/share/locale" | |||||||
|       nmcli connection down $wert &> ${wg_wdir}.stop.txt  |       nmcli connection down $wert &> ${wg_wdir}.stop.txt  | ||||||
|       if disable=$(grep -i 'deaktiviert\|disabled' ${wg_wdir}.stop.txt) |       if disable=$(grep -i 'deaktiviert\|disabled' ${wg_wdir}.stop.txt) | ||||||
|           then    |           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 |               pkill yad | ||||||
|         |         | ||||||
|       fi |       fi | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								wire_g
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								wire_g
									
									
									
									
									
								
							| @@ -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 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 | ||||||
| @@ -60,7 +60,7 @@ wg_notify(){ | |||||||
|     #Icon des Menübuttons definieren |     #Icon des Menübuttons definieren | ||||||
|     echo "icon:${wg_pic}wg-vpn.png" >&3 |     echo "icon:${wg_pic}wg-vpn.png" >&3 | ||||||
|     #Name des Menüs definieren |     #Name des Menüs definieren | ||||||
|     echo $"tooltip:$active activ" >&3 |     echo "tooltip:$"$active activ" >&3 | ||||||
|  |  | ||||||
| } | } | ||||||
| export -f wg_notify | export -f wg_notify | ||||||
| @@ -119,7 +119,7 @@ remove(){ | |||||||
|                 then |                 then | ||||||
|                     yad --window-icon=${wg_pic}wg-trash.png \ |                     yad --window-icon=${wg_pic}wg-trash.png \ | ||||||
|                         --image-on-top --image=${wg_pic}wg-info.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" \ |                         --text-align=center --button=$"OK" --title "Wire-G Trash" \ | ||||||
|                         --fixed --center --buttons-layout=center --borders=8 --center |                         --fixed --center --buttons-layout=center --borders=8 --center | ||||||
|             else  |             else  | ||||||
| @@ -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." \ | ||||||
|                 --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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user