summaryrefslogtreecommitdiff
path: root/configs/mate-openrc/root-image/root/.language.sh
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2017-10-16 18:52:38 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2017-11-16 11:13:13 -0500
commitcfb9207ead40dc9b12e37578fab2641f213b3640 (patch)
treea68275b10d8dba78a79803984661ba1ade985067 /configs/mate-openrc/root-image/root/.language.sh
parentf1a8d3007a018cde15b6c49f761a9eac2543a23c (diff)
delete edition-specific configs
* the original intention was for each edition on separate branches * this commit builds only the main CLI ISO as originally intended * preparing for editions to be specified as CLI args to master script
Diffstat (limited to 'configs/mate-openrc/root-image/root/.language.sh')
-rwxr-xr-xconfigs/mate-openrc/root-image/root/.language.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/configs/mate-openrc/root-image/root/.language.sh b/configs/mate-openrc/root-image/root/.language.sh
deleted file mode 100755
index 782d198..0000000
--- a/configs/mate-openrc/root-image/root/.language.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-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=$(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
-
- #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