mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 17:51:33 +01:00
Installer lang select
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
#!/bin/bash
|
||||
## Note: Some text editors in some lines its wrong the "markup color" because much '"'($) things.
|
||||
sclang=$1
|
||||
|
||||
#First of all, the language
|
||||
idiom=`dialog --stdout --nocancel --backtitle "JKArch Instalation" --title "Language selection" --menu "Select your language / Selecciona tu idioma" 0 70 5 1 "Spanish (es)" 2 "English (en) (In progress)"`
|
||||
|
||||
if [[ $idiom -eq 1 ]];then
|
||||
sclang="es"
|
||||
loadkeys es
|
||||
elif [[ $idiom -eq 2 ]];then
|
||||
sclang="en"
|
||||
loadkeys en
|
||||
fi
|
||||
|
||||
#Now, translations
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/installer/translations.sh -O translations.sh
|
||||
source translations.sh
|
||||
|
||||
@@ -9,6 +21,8 @@ setterm -blank 0 -powerdown 0 -powersave off
|
||||
#Fix para caracteres de dialog, ñ o tildes
|
||||
export NCURSES_NO_UTF8_ACS=1
|
||||
|
||||
# Functions
|
||||
|
||||
function pause {
|
||||
echo "$(T "Press enter to continue...")"
|
||||
read
|
||||
|
||||
Reference in New Issue
Block a user