Bug: Locale more precise
This commit is contained in:
parent
9d8f9aeeba
commit
1ebba0d3cc
1 changed files with 3 additions and 3 deletions
6
archfi
6
archfi
|
@ -105,7 +105,7 @@ chooselanguage(){
|
||||||
fi
|
fi
|
||||||
font=
|
font=
|
||||||
if [ "$(cat /etc/locale.gen | grep ""#${locale}"")" != "" ]; then
|
if [ "$(cat /etc/locale.gen | grep ""#${locale}"")" != "" ]; then
|
||||||
sed -i "/${locale}/s/^#//g" /etc/locale.gen
|
sed -i "/#${locale}/s/^#//g" /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
fi
|
fi
|
||||||
export LANG=${locale}
|
export LANG=${locale}
|
||||||
|
@ -1039,8 +1039,8 @@ archsetlocale(){
|
||||||
echo "LANG=${locale}.UTF-8" > /mnt/etc/locale.conf
|
echo "LANG=${locale}.UTF-8" > /mnt/etc/locale.conf
|
||||||
echo "echo \"LC_COLLATE=C\" >> /mnt/etc/locale.conf"
|
echo "echo \"LC_COLLATE=C\" >> /mnt/etc/locale.conf"
|
||||||
echo "LC_COLLATE=C" >> /mnt/etc/locale.conf
|
echo "LC_COLLATE=C" >> /mnt/etc/locale.conf
|
||||||
echo "sed -i '/"${locale}".UTF-8/s/^#//g' /mnt/etc/locale.gen"
|
echo "sed -i '/#${locale}.UTF-8/s/^#//g' /mnt/etc/locale.gen"
|
||||||
sed -i '/'${locale}'.UTF-8/s/^#//g' /mnt/etc/locale.gen
|
sed -i '/#'${locale}'.UTF-8/s/^#//g' /mnt/etc/locale.gen
|
||||||
archchroot setlocale
|
archchroot setlocale
|
||||||
pressanykey
|
pressanykey
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue