home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- TMP=/var/log/setup/tmp
- T_PX=`cat $TMP/SeTT_PX`
- export TEXTDOMAIN=SeTlocale
-
- dialog --title "`gettext "Select your language"`" --no-cancel \
- --default-item "`gettext "US"`" \
- --menu "`gettext "Select your language:"`" 0 0 0 \
- `gettext "French"` "" \
- `gettext "German"` "" \
- `gettext "English"` "" \
- `gettext "Italish"` "" \
- `gettext "Polish"` "" \
- `gettext "Spanish"` "" \
- `gettext "US"` "" \
- 2> $TMP/reply
- OPTION=`cat $TMP/reply`
-
- if test "$OPTION" = "`gettext "German"`" ; then
- LANG="de_DE"
- cat $T_PX/etc/X11/xorg.conf | sed -e 's/# Option "XkbLayout" "de"/ Option "Xkblayout" "de"/' > $T_PX/etc/X11/xorg.conf.new
- mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
- cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz
- fi
-
- if test "$OPTION" = "`gettext "Polish"`" ; then
- LANG="pl_PL"
- cat $T_PX/etc/X11/xorg.conf | sed -e 's/# Option "XkbLayout" "de"/ Option "Xkblayout" "pl"/' > $T_PX/etc/X11/xorg.conf.new
- mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
- cp -f $T_PX/usr/share/kbd/consolefonts/lat2a-16.psfu.gz $T_PX/lib/consolefont.psfu.gz
- fi
-
- if test "$OPTION" = "`gettext "English"`" ; then
- LANG="en_EN"
- fi
-
- if test "$OPTION" = "`gettext "Spanish"`" ; then
- LANG="es_ES"
- cat $T_PX/etc/X11/xorg.conf | sed -e 's/# Option "XkbLayout" "de"/ Option "Xkblayout" "es"/' > $T_PX/etc/X11/xorg.conf.new
- mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
- cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz
- fi
-
- if test "$OPTION" = "`gettext "French"`" ; then
- LANG="fr_FR"
- cat $T_PX/etc/X11/xorg.conf | sed -e 's/# Option "XkbLayout" "de"/ Option "Xkblayout" "fr"/' > $T_PX/etc/X11/xorg.conf.new
- mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
- cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz
- fi
-
- if test "$OPTION" = "`gettext "Italish"`" ; then
- LANG="it_IT"
- cat $T_PX/etc/X11/xorg.conf | sed -e 's/# Option "XkbLayout" "de"/ Option "Xkblayout" "it"/' > $T_PX/etc/X11/xorg.conf.new
- mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
- cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz
- fi
-
- if test "$OPTION" = "US" ; then
- LANG="en_US"
- fi
-
- echo "$LANG" > $T_PX/etc/conf.d/locale
-
-