1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-14 17:21:32 +01:00
This commit is contained in:
2016-12-22 12:55:27 +00:00
parent 0b00466b5a
commit 7ea172ed7b

View File

@@ -524,7 +524,7 @@ execl chroot pacman -Sc --noconfirm
function horaidioma {
while [[ $opclang == "" ]];do
varx="" #Empty var
langs=$(cat /mnt/etc/locale.gen | grep '^#[a-zA-Z]' | cut -f1 -d" " | cut -c2-30 | sort | uniq)
langs=$(cat /etc/locale.gen | grep '^#[a-zA-Z]' | cut -f1 -d" " | cut -c2-30 | sort | uniq)
for addr in $(echo $langs | tr " " "\n")
do
varx+=" $addr $addr"
@@ -534,7 +534,7 @@ opclang=`bash -c "$varf"`
varx="" #Empty varx
langabr=$(echo $opclang | cut -f1 -d"_")
langinst=$(cat /mnt/etc/locale.gen | grep -m1 '^#'$opclang | cut -c2-40)
langinst=$(cat /etc/locale.gen | grep -m1 '^#'$opclang | cut -c2-40)
opt=`dialog --stdout --nocancel --menu "$(T "Your language:") $opclang" 0 0 4 1 "$(T "It's right")" 2 "$(T "No,edit")"`
case $opt in
2) opclang="";;
@@ -544,7 +544,7 @@ done #End of selecting lang
echo "$(T "Now select your timezone for adjusting the clock")"
while [[ $NEW_TIMEZONE == "" ]];do
NEW_TIMEZONE=$(execl chroot tzselect)
NEW_TIMEZONE=$(execl tzselect)
opt=`dialog --stdout --nocancel --menu "$(T "Your timezone:") $NEW_TIMEZONE" 0 0 4 1 "$(T "It's right")" 2 "$(T "No,edit")"`
case $opt in
2) NEW_TIMEZONE="";;