installer and uninstaller edit to translate

This commit is contained in:
Désiré Werner Menrath 2023-11-20 18:54:15 +01:00
parent 74336a42e3
commit 942e3af6cb
2 changed files with 15 additions and 15 deletions

View File

@ -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 ##########################################################

View File

@ -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