#!/bin/bash

function _inicio_es {
  notify-send -u normal -i "/usr/share/icons/notify.png" "SUGERENCIAS" "☛ Intenta instalar UNA cosa a la vez.\n☛ Flathub son versiones más modernas.\n☛ Los paquetes de sistema son más estables..\n☛ Algunos programas solo tienen paquetes Flathub."
  mintinstall
}

function _inicio_en {
  notify-send -u normal -i "/usr/share/icons/notify.png" "SUGGESTIONS" "☛ Try installing ONE thing at a time.\n☛ Flathub versions are more up-to-date.\n☛ System packages are more stable.\n☛ Some programs only have Flathub packages."
  mintinstall
}

function _inicio_gl {
  notify-send -u normal -i "/usr/share/icons/notify.png" "SUXESTIÓNS" "☛ Proba instalar UNHA cousa á vez.\n☛ Os Flathub son versións máis modernas\n☛ Os paquetes do sistema son máis estables.\n☛ Algúns programas só dispoñen de paquetes Flathub."
  mintinstall
}

function _inicio_pt {
  notify-send -u normal -i "/usr/share/icons/notify.png" "DICAS" "☛ Tente instalar UMA coisa de cada vez.\n☛ As versões do Flathub estão mais atualizadas.\n☛ Os pacotes do sistema são mais estáveis.\n☛ Alguns programas só têm pacotes Flathub."
  mintinstall
}

function _inicio_fr {
  notify-send -u normal -i "/usr/share/icons/notify.png" "CONSEILS" "☛ Essayez d'installer UNE chose à la fois.\n☛ Les versions Flathub sont plus récentes.\n☛ Les paquets système sont plus stables.\n☛ Certains programmes n'ont que des paquets Flathub."
  mintinstall
}

function _inicio_it {
  notify-send -u normal -i "/usr/share/icons/notify.png" "SUGGERIMENTI" "☛ Prova a installare UNA cosa alla volta.\n☛ Le versioni di Flathub sono più aggiornate\n☛ I pacchetti di sistema sono più stabili.\n☛ Alcuni programmi hanno solo pacchetti Flathub."
  mintinstall
}

function _inicio_de {
  notify-send -u normal -i "/usr/share/icons/notify.png" "TIPPS" "☛ Versuche, EIN Ding auf einmal zu installieren.\n☛ Flathub-Versionen sind aktueller.\n☛ Systempakete sind stabiler.\n☛ Einige Programme haben nur Flathub-Pakete."
  mintinstall
}

function _inicio_ru {
  notify-send -u normal -i "/usr/share/icons/notify.png" "РЕКОМЕНДАЦИИ" "☛ Попробуйте устанавливать ПО ОДНО за раз.\n☛ Версии Flathub более новые.\n☛ Системные пакеты более стабильны.\n☛ Некоторые программы доступны только в виде пакетов Flathub."
  mintinstall
}

function _inicio_hu {
  notify-send -u normal -i "/usr/share/icons/notify.png" "JAVASLATOK" "☛ Probálj meg EGYSZERRE csak EGY dolgot telepíteni.\n☛ A Flathub verziók frissebbek.\n☛ A rendszercsomagok stabilabbak.\n☛ Néhány program csak Flathub csomagként érhető el."
  mintinstall
}


# =========================================================================================
# SELECTOR DE IDIOMA [CÓDIGO REUTILIZABLE]
# Esta sección fue tomada de Etertics GNU/Linux, 
# @Autor: Javier Obregón (GPLv3)
# =========================================================================================

function _idioma() 

{

IDIOMA=$(echo $LANG | cut -d_ -f1) # Idioma del sistema

if [[ $IDIOMA = "es" ]]
then
_inicio_es

elif [[ $IDIOMA = "en" ]]
then
_inicio_en

elif [[ $IDIOMA = "gl" ]]
then
_inicio_gl

elif [[ $IDIOMA = "pt" ]]
then
_inicio_pt

elif [[ $IDIOMA = "fr" ]]
then
_inicio_fr

elif [[ $IDIOMA = "it" ]]
then
_inicio_it

elif [[ $IDIOMA = "de" ]]
then
_inicio_de

elif [[ $IDIOMA = "ru" ]]
then
_inicio_ru

elif [[ $IDIOMA = "hu" ]]
then
_inicio_hu

else
_inicio_en
fi

}

_idioma



