Improve languages feature

This commit is contained in:
MatMoul
2016-03-05 22:59:38 +01:00
parent a13edbfb06
commit 392dca0db7
5 changed files with 21 additions and 3 deletions

8
archfi
View File

@@ -90,11 +90,13 @@ chooselanguage(){
if [ "$sel" = "English" ]; then
loadstrings
else
case $sel in
"Russian") eval $(setfont cyr-sun16);;
esac
eval $(curl -L $baseurl/lng/$sel | sed '/^#/ d')
fi
eval $(setfont $font)
font=
sed -i "/$locale.UTF-8/s/^#//g" /etc/locale.gen
locale-gen
export LANG=$locale
fi
}