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 if [ "$sel" = "English" ]; then
loadstrings loadstrings
else else
case $sel in
"Russian") eval $(setfont cyr-sun16);;
esac
eval $(curl -L $baseurl/lng/$sel | sed '/^#/ d') eval $(curl -L $baseurl/lng/$sel | sed '/^#/ d')
fi fi
eval $(setfont $font)
font=
sed -i "/$locale.UTF-8/s/^#//g" /etc/locale.gen
locale-gen
export LANG=$locale
fi fi
} }

View file

@ -6,6 +6,10 @@
# notes : misc text... # notes : misc text...
locale=fr_FR.UTF-8
#font=
txtselectserver="Sélectionnez le serveur source :" txtselectserver="Sélectionnez le serveur source :"
txtmainmenu="Menu Principal" txtmainmenu="Menu Principal"

View file

@ -6,6 +6,10 @@
# notes : Version 0.1 # notes : Version 0.1
locale=de_DE.UTF-8
#font=
txtselectserver="Wählen Sie einen Spiegelserver:" txtselectserver="Wählen Sie einen Spiegelserver:"
txtmainmenu="Hauptmenü" txtmainmenu="Hauptmenü"

View file

@ -6,6 +6,10 @@
# notes : Fejlesztés alatt! # notes : Fejlesztés alatt!
locale=hu_HU.UTF-8
#font=
txtselectserver="Forrás szerver kiválasztása :" txtselectserver="Forrás szerver kiválasztása :"
txtmainmenu="Főmenü" txtmainmenu="Főmenü"

View file

@ -6,6 +6,10 @@
# notes : v.1.1 # notes : v.1.1
locale=ru_RU.UTF-8
font=cyr-sun16
txtselectserver="Выберите сервер исходников :" txtselectserver="Выберите сервер исходников :"
txtmainmenu="Главное меню" txtmainmenu="Главное меню"