aboutsummaryrefslogtreecommitdiffstats
path: root/archfi
diff options
context:
space:
mode:
Diffstat (limited to 'archfi')
-rw-r--r--archfi8
1 files changed, 5 insertions, 3 deletions
diff --git a/archfi b/archfi
index 84177c3..1de9d8f 100644
--- a/archfi
+++ b/archfi
@@ -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
}