From 942e3af6cbf4c93a1d00eae07d864d5e950df6b3 Mon Sep 17 00:00:00 2001 From: punix Date: Mon, 20 Nov 2023 18:54:15 +0100 Subject: [PATCH] installer and uninstaller edit to translate --- installer1.0.5 | 26 +++++++++++++------------- uninstaller1.0.0 | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/installer1.0.5 b/installer1.0.5 index 0c4193c..8758f29 100755 --- a/installer1.0.5 +++ b/installer1.0.5 @@ -17,34 +17,34 @@ if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1 then - echo Wire-G wird installiert... + echo $"Wire-G is installed..." mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli if ! which yad > /dev/null ; then sudo apt install yad -y > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1 then - echo Wire-G wird installiert... + echo $"Wire-G is installed..." mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli if ! which yad > /dev/null ; then sudo pacman -S --noconfirm yad > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1 then - echo Wire-G wird installiert... + echo $"Wire-G is installed..." mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli if ! which yad > /dev/null ; then sudo dnf install yad > /dev/null 2>&1 ; echo yad wird installiert. Bitte warten... ; fi elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 then clear - echo Achtung OpenSuse wird nicht offiziell unterstützt! + echo $"Attention OpenSuse is not officially supported!" echo - echo yad müssen sie selbst installieren, wenn sie fortfahren! - echo da diese Pakete offiziell nicht verfügbar sind. + echo $"yad must install them themselves when they continue!" + echo $"since these packages are officially not available." echo - read -p "Geben Sie i für die installation ein und die Eingabetaste, Abbruch mit jeder anderen Taste ..." RESPONSE + read -p $"Enter i for installation and enter key, break down with any other button ..." RESPONSE if [ "$RESPONSE" == "i" ] then - echo Wire-G wird installiert... + echo $"Wire-G is installed..." mkdir -p /home/"$USER"/.icons ; cp icons/* /home/"$USER"/.icons/ ; mkdir -p /home/"$USER"/.config/wg_nmcli else @@ -52,9 +52,9 @@ elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 fi else clear - echo Ihr system konnte nicht ermittelt werden. + echo $"Your system could not be determined." echo - read -n 1 -s -r -p "Zum Fenster schließen eine Taste drücken" + read -n 1 -s -r -p $"To close the window press a button" clear exit 0 fi @@ -78,12 +78,12 @@ echo case $LANG in de_DE.UTF-8) sudo cp languages/de/*.mo /usr/share/locale/de/LC_MESSAGES/ ;; - *) echo Wire-G nutzt die Standardsprache. ;; + *) echo $"Wire-G uses the standard language." ;; esac clear -echo "Installation erfolgreich!" +echo $"Installation successfully!" echo -read -n 1 -s -r -p "Zum Fenster schließen eine Taste drücken" +read -n 1 -s -r -p $"To close the window press a button" clear ############################################ END ########################################################## diff --git a/uninstaller1.0.0 b/uninstaller1.0.0 index f628bd8..be8a2fa 100755 --- a/uninstaller1.0.0 +++ b/uninstaller1.0.0 @@ -28,8 +28,8 @@ sudo rm /usr/share/icons/Arch-Symbole/wg-vpn.png 2>&1 ; sudo rm /sbin/wire_g 2>& wait; sudo rm /usr/share/applications/Wire-G.desktop 2>&1 ; sudo rm /usr/share/locale/de/LC_MESSAGES/wire-g.mo 2>&1 clear -echo "deinstallation erfolgreich!" +echo $"uninstall successfully!" echo -read -n 1 -s -r -p "Zum Fenster schließen eine Taste drücken" +read -n 1 -s -r -p $"To close the window press a button" clear