From 4df1acb7babeeefaa56c2d00aa5853eba4b7fd83 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 26 Dec 2012 02:00:42 +0100 Subject: start adding support for other languages than english. currently a no-op --- bin/g-i-installation.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'bin/g-i-installation.sh') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index bd0b452b..dcf66503 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -25,6 +25,7 @@ set -e export LC_ALL=C export MIRROR=http://ftp.de.debian.org/debian export http_proxy="http://localhost:3128" +export # # init @@ -33,6 +34,7 @@ DISPLAY=localhost:$1 NAME=$2 # it should be possible to derive $NAME from $JOB_NAME DISKSIZE_IN_GB=$3 URL=$4 +# $5 and $6 are used below for language setting RAMSIZE=1024 if [ "$(basename $URL)" != "amd64" ] ; then IMAGE=$(pwd)/$(basename $URL) @@ -50,6 +52,17 @@ mkdir -p results WORKSPACE=$(pwd) RESULTS=$WORKSPACE/results +# +# language +# +if [ -z "$5" ] || [ -z "$6" ] ; then + DI_LANG="en" + DI_LOCALE="en_US" +else + DI_LANG=$5 + DI_LOCALE=$6 +fi + fetch_if_newer() { url="$2" file="$1" @@ -122,8 +135,8 @@ bootstrap_system() { # preseeding related variables PRESEED_PATH=d-i-preseed-cfgs PRESEED_URL="url=$QEMU_WEBSERVER/$PRESEED_PATH/${NAME}_preseed.cfg" - INST_LOCALE="locale=en_US" - INST_KEYMAP="keymap=us" + INST_LOCALE="locale=$DI_LOCALE" + INST_KEYMAP="keymap=us" # always us! INST_VIDEO="video=vesa:ywrap,mtrr vga=788" EXTRA_APPEND="" case $NAME in -- cgit v1.2.3-70-g09d2