Bug: Locale more precise

This commit is contained in:
MatMoul 2020-01-11 02:56:14 +01:00
parent 9d8f9aeeba
commit 1ebba0d3cc

6
archfi
View file

@ -105,7 +105,7 @@ chooselanguage(){
fi
font=
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
fi
export LANG=${locale}
@ -1039,8 +1039,8 @@ archsetlocale(){
echo "LANG=${locale}.UTF-8" > /mnt/etc/locale.conf
echo "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"
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
archchroot setlocale
pressanykey
fi