diff options
author | David P <megver83@openmailbox.org> | 2017-10-01 17:19:40 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-10-01 17:19:40 -0300 |
commit | 1bf80f77f7a8bb4ffdd203c60662421e3f8f589b (patch) | |
tree | e7b444e2dd20ffb0b5905942dd853bf4d2c0da8a /configs/mate-openrc/root-image/root/.language.sh | |
parent | f5d62fdcd4a6d351fa25af3b3e443ba4de67a802 (diff) |
Added configs/mate-openrc
Other changes:
- Updated talkingparabola-X11 packages.both (xorg pkgs)
- Updated pacman-init service for profile-openrc
Diffstat (limited to 'configs/mate-openrc/root-image/root/.language.sh')
-rwxr-xr-x | configs/mate-openrc/root-image/root/.language.sh | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/configs/mate-openrc/root-image/root/.language.sh b/configs/mate-openrc/root-image/root/.language.sh index d12cb61..782d198 100755 --- a/configs/mate-openrc/root-image/root/.language.sh +++ b/configs/mate-openrc/root-image/root/.language.sh @@ -5,11 +5,15 @@ finish=0 #If change locale the system need restart session to see the changes #Comprobe if language was selected code=$(cat ~/.codecheck | grep LANG= | tail --bytes 2) if [ $code = "0" ]; then - lang=$(zenity --list --title="Select your locale" --column="Locale" --column="Language" \ - "en_US.UTF-8" "English" \ - "gl_ES.UTF-8" "Galego" \ - "es_ES.UTF-8" "Spanish" \ - "pt_BR.UTF-8" "Brazilian Portuguese") + lang=$(dialog --stdout --backtitle "System language selection" --menu "Choose your language:" 15 40 10 \ + "en_US.UTF-8" "English" \ + "gl_ES.UTF-8" "Galego" \ + "es_ES.UTF-8" "Spanish" \ + "pt_BR.UTF-8" "Brazilian Portuguese" \ + "pl_PL.UTF-8" "Polish" \ + "it_IT.UTF-8" "Italian" \ + "fr_FR.UTF-8" "French" \ + "eo" "Esperanto") #Copy locale in locale.conf echo "LANG=$lang" > /etc/locale.conf @@ -17,19 +21,10 @@ if [ $code = "0" ]; then #Put a new line confirm that language was selected sed -i '/LANG=./d' ~/.codecheck echo "LANG=1" >> ~/.codecheck - + #Copy icewm menu in that language and scripts to install cp -a ~/.icewm/menuLanguages/menu_${lang/_*/} ~/.icewm/menu cp -a ~/.scriptsInstallation/language/${lang/_*/}/* ~/.scriptsInstallation/ finish=1 fi - -# Save keymap as "us" so it starts next login -sed -i '/XKBMAP=./d' ~/.codecheck -echo "XKBMAP=us" >> ~/.codecheck - -if [ $finish -eq 1 ]; then - #Restart session - pkill -KILL -u root -fi |