|
|
|
@ -181,6 +181,7 @@ check_for_error() {
|
|
|
|
|
|
|
|
|
|
# Add locale on-the-fly and sets source translation file for installer
|
|
|
|
|
select_language() {
|
|
|
|
|
if [[ $(cat ${LANGSEL} 2>/dev/null) == "" ]]; then
|
|
|
|
|
DIALOG " Select Language " --default-item '3' --menu "\n$_Lang" 0 0 11 \
|
|
|
|
|
"1" $"Danish|(da_DK)" \
|
|
|
|
|
"2" $"Dutch|(nl_NL)" \
|
|
|
|
@ -194,6 +195,7 @@ select_language() {
|
|
|
|
|
"10" $"Spanish|(es_ES)" 2>${LANGSEL}
|
|
|
|
|
|
|
|
|
|
# "5" $"German|(de_DE)" \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
case $(cat ${LANGSEL}) in
|
|
|
|
|
"1") source $DATADIR/translations/danish.trans
|
|
|
|
@ -248,6 +250,7 @@ select_language() {
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if [[ $(cat ${LANGSEL} 2>/dev/null) == "" ]]; then
|
|
|
|
|
# Generate the chosen locale and set the language
|
|
|
|
|
DIALOG " $_Config " --infobox "$_ApplySet" 0 0
|
|
|
|
|
sleep 2
|
|
|
|
@ -261,6 +264,7 @@ select_language() {
|
|
|
|
|
setfont $FONT 2>$ERR
|
|
|
|
|
check_for_error "set font $FONT" $?
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mk_connection() {
|
|
|
|
|