reintroduce keymap settings in prep_menu

This commit is contained in:
Bernhard Landauer 2017-03-24 18:41:41 +01:00
parent 0d14915668
commit 3b35eed05f
13 changed files with 43 additions and 30 deletions

View File

@ -22,7 +22,8 @@ _PassErrBody="Adgangskoderne er ikke ens. Prøv igen."
# Basics # Basics
_SelLang="Sprogvalg" _SelLang="Sprogvalg"
_Lang="Sprog" _Lang="Sprog"
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="Internet forbindelse er ikke aktiv" _NoCon="Internet forbindelse er ikke aktiv"
_EstCon="Opret forbindelse?" _EstCon="Opret forbindelse?"

View File

@ -21,7 +21,8 @@ _PassErrBody="De ingegeven wachtwoorden zijn niet identiek. Probeer opnieuw aub.
# Basics # Basics
_SelLang="Select Language" # translate me ! _SelLang="Select Language" # translate me !
_Lang="Language" # translate me ! _Lang="Language" # translate me !
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="No Internet Detected." # translate me ! _NoCon="No Internet Detected." # translate me !
_EstCon="Establish connection?" # translate me ! _EstCon="Establish connection?" # translate me !

View File

@ -21,8 +21,8 @@ _PassErrBody="The passwords entered do not match. Please try again."
# Basics # Basics
_SelLang="Select Language" _SelLang="Select Language"
_Lang="Language" _Lang="Language"
_Keymap="Keymap" _Keep="Keep"
_Change="Would you like to change the settings?" _Change="Change"
_NoCon="No Internet Detected." _NoCon="No Internet Detected."
_EstCon="Establish connection?" _EstCon="Establish connection?"
_Config="Configure" _Config="Configure"
@ -154,7 +154,7 @@ _MIrrorPacQ="Use edited pacman configuration for installed system? If Yes, the f
# Set Keymap (vconsole) # Set Keymap (vconsole)
_VCKeymapTitle="Set Virtual Console" _VCKeymapTitle="Set Virtual Console"
_DefKeymap="The default keymap for your selected language is" _DefKeymap="Currently configured keymap setting is:"
_VCKeymapBody="A virtual console is a shell prompt in a non-graphical environment. Its keymap is independent of a desktop environment / terminal." _VCKeymapBody="A virtual console is a shell prompt in a non-graphical environment. Its keymap is independent of a desktop environment / terminal."
# Set Xkbmap (environment) # Set Xkbmap (environment)

View File

@ -22,7 +22,8 @@ _PassErrBody="Les mots de passe entrés ne correspondent pas. Veuillez réessaye
# Basics # Basics
_SelLang="Choisir la langue" _SelLang="Choisir la langue"
_Lang="Langue" _Lang="Langue"
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="Pas de connexion Internet détectée." _NoCon="Pas de connexion Internet détectée."
_EstCon="Établir la connexion ?" _EstCon="Établir la connexion ?"

View File

@ -20,7 +20,8 @@ _PassErrBody="Die eingegebenen Passwörter sind nicht gleich. Bitte erneut versu
# Basics # Basics
_SelLang="Sprachauswahl" _SelLang="Sprachauswahl"
_Lang="Sprache" _Lang="Sprache"
_Keymap="Tastaturbelegung" _Keep="Behalten"
_Change="Ändern"
_Change="Möchten Sie die Einstellungen ändern?" _Change="Möchten Sie die Einstellungen ändern?"
_NoCon="Keine Internetverbindung." _NoCon="Keine Internetverbindung."
_EstCon="Verbindung herstellen?" _EstCon="Verbindung herstellen?"

View File

@ -20,7 +20,8 @@ _PassErrBody="A megadott jelszavak nem egyeznek. Kérlek próbáld újra."
# Alap beállítások # Alap beállítások
_SelLang="Válassz nyelvet" _SelLang="Válassz nyelvet"
_Lang="Nyelv" _Lang="Nyelv"
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="Nincs internetkapcsolat." _NoCon="Nincs internetkapcsolat."
_EstCon="Kapcsolódni akarsz az internethez?" _EstCon="Kapcsolódni akarsz az internethez?"

View File

@ -21,7 +21,8 @@ _PassErrBody="Le password digitate non corrispondono. Provare nuovamente."
# Basics # Basics
_SelLang="Select Language" # translate me ! _SelLang="Select Language" # translate me !
_Lang="Language" # translate me ! _Lang="Language" # translate me !
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="No Internet Detected." # translate me ! _NoCon="No Internet Detected." # translate me !
_EstCon="Establish connection?" # translate me ! _EstCon="Establish connection?" # translate me !

View File

@ -21,7 +21,8 @@ _PassErrBody="As senhas digitadas não coincidem. Por favor, tente novamente."
# Basics # Basics
_SelLang="Select Language" # translate me ! _SelLang="Select Language" # translate me !
_Lang="Language" # translate me ! _Lang="Language" # translate me !
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="No Internet Detected." # translate me ! _NoCon="No Internet Detected." # translate me !
_EstCon="Establish connection?" # translate me ! _EstCon="Establish connection?" # translate me !

View File

@ -21,7 +21,8 @@ _PassErrBody="As senhas digitadas não coincidem. Por favor, tente novamente."
# Basics # Basics
_SelLang="Select Language" # translate me ! _SelLang="Select Language" # translate me !
_Lang="Language" # translate me ! _Lang="Language" # translate me !
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="No Internet Detected." # translate me ! _NoCon="No Internet Detected." # translate me !
_EstCon="Establish connection?" # translate me ! _EstCon="Establish connection?" # translate me !

View File

@ -21,7 +21,8 @@ _PassErrBody="Введеные пароли не совпадают. Пожал
# Basics # Basics
_SelLang="Выбрать язык" _SelLang="Выбрать язык"
_Lang="Язык" _Lang="Язык"
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="Интернет не найден." _NoCon="Интернет не найден."
_EstCon="Установить соединение?" _EstCon="Установить соединение?"

View File

@ -21,7 +21,8 @@ _PassErrBody="Las contraseñas introducidas no coinciden. Vuelva a intentarlo."
# Basics # Basics
_SelLang="Select Language" # translate me ! _SelLang="Select Language" # translate me !
_Lang="Language" # translate me ! _Lang="Language" # translate me !
_Keymap="Keymap" # translate me ! _Keep="Keep" # translate me !
_Change="Change" # translate me !
_Change="Would you like to change the settings?" # translate me ! _Change="Would you like to change the settings?" # translate me !
_NoCon="No Internet Detected." # translate me ! _NoCon="No Internet Detected." # translate me !
_EstCon="Establish connection?" # translate me ! _EstCon="Establish connection?" # translate me !

View File

@ -56,27 +56,30 @@ prep_menu() {
local PARENT="$FUNCNAME" local PARENT="$FUNCNAME"
declare -i loopmenu=1 declare -i loopmenu=1
while ((loopmenu)); do while ((loopmenu)); do
submenu 6 submenu 7
DIALOG " $_PrepMenuTitle " --default-item ${HIGHLIGHT_SUB} --menu "\n$_PrepMenuBody\n " 0 0 6 \ DIALOG " $_PrepMenuTitle " --default-item ${HIGHLIGHT_SUB} --menu "\n$_PrepMenuBody\n " 0 0 7 \
"1" "$_DevShowOpt" \ "1" "$_VCKeymapTitle" \
"2" "$_PrepPartDisk" \ "2" "$_DevShowOpt" \
"3" "$_PrepLUKS" \ "3" "$_PrepPartDisk" \
"4" "$_PrepLVM $_PrepLVM2" \ "4" "$_PrepLUKS" \
"5" "$_PrepMntPart" \ "5" "$_PrepLVM $_PrepLVM2" \
"6" "$_Back" 2>${ANSWER} "6" "$_PrepMntPart" \
"7" "$_Back" 2>${ANSWER}
HIGHLIGHT_SUB=$(cat ${ANSWER}) HIGHLIGHT_SUB=$(cat ${ANSWER})
case $(cat ${ANSWER}) in case $(cat ${ANSWER}) in
"1") show_devices "1") select_keymap
;; ;;
"2") umount_partitions "2") show_devices
;;
"3") umount_partitions
select_device && create_partitions select_device && create_partitions
;; ;;
"3") luks_menu "4") luks_menu
;; ;;
"4") lvm_menu "5") lvm_menu
;; ;;
"5") mount_partitions "6") mount_partitions
;; ;;
*) loopmenu=0 *) loopmenu=0
return 0 return 0

View File

@ -218,7 +218,7 @@ set_language() {
ini translation "$TRANS" ini translation "$TRANS"
# does user want to change the old settings? # does user want to change the old settings?
DIALOG " $_SelLang " --yesno "\n${_Lang}: [ ${TRANS^} ]\n${_Keymap}: [ ${KEYMAP} ]\n\n${_Change}\n " 0 0 && select_language DIALOG " $_SelLang " --yes-label "$_Keep" --no-label "$_Change" --yesno "\n${_Lang}: ${TRANS^}\n " 0 0 || select_language
fi fi
# Generate locale and set language # Generate locale and set language
@ -321,12 +321,12 @@ select_language() {
FONT="ter-${fl}${fs}n" FONT="ter-${fl}${fs}n"
ini linux.font "$FONT" ini linux.font "$FONT"
# does user want to change the default keymap?
DIALOG " $_VCKeymapTitle " --yesno "\n${_DefKeymap}:\n\n[ ${KEYMAP} ]\n\n${_Change}\n " --defaultno 0 0 && select_keymap
} }
select_keymap() { select_keymap() {
# does user want to change the default settings?
DIALOG " $_VCKeymapTitle " --yes-label "$_Keep" --no-label "$_Change" --yesno "\n${_DefKeymap}\n\n[ ${KEYMAP} ]\n " 0 0 && return 0
KEYMAPS="" KEYMAPS=""
for i in $(ls -R /usr/share/kbd/keymaps | grep "map.gz" | sed 's/\.map\.gz//g' | sort); do for i in $(ls -R /usr/share/kbd/keymaps | grep "map.gz" | sed 's/\.map\.gz//g' | sort); do
KEYMAPS="${KEYMAPS} ${i} -" KEYMAPS="${KEYMAPS} ${i} -"