home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / boot / isolinux / initrd / in / usr / lib / setup / SeTlocale < prev    next >
Encoding:
Text File  |  2006-06-27  |  2.6 KB  |  64 lines

  1. #!/bin/sh
  2. TMP=/var/log/setup/tmp
  3. T_PX=`cat $TMP/SeTT_PX`
  4. export TEXTDOMAIN=SeTlocale
  5.  
  6.    dialog --title "`gettext "Select your language"`" --no-cancel \
  7.    --default-item "`gettext "US"`" \
  8.    --menu "`gettext "Select your language:"`" 0 0 0 \
  9.    `gettext "French"` "" \
  10.    `gettext "German"` "" \
  11.    `gettext "English"` "" \
  12.    `gettext "Italish"` "" \
  13.    `gettext "Polish"` "" \
  14.    `gettext "Spanish"` "" \
  15.    `gettext "US"` "" \
  16.    2> $TMP/reply
  17.    OPTION=`cat $TMP/reply`
  18.  
  19.          if test "$OPTION" = "`gettext "German"`" ; then
  20.         LANG="de_DE"
  21.         cat $T_PX/etc/X11/xorg.conf | sed -e 's/#    Option     "XkbLayout"     "de"/    Option     "Xkblayout"     "de"/' > $T_PX/etc/X11/xorg.conf.new
  22.         mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
  23.         cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz 
  24.          fi
  25.      
  26.      if test "$OPTION" = "`gettext "Polish"`" ; then
  27.         LANG="pl_PL"    
  28.         cat $T_PX/etc/X11/xorg.conf | sed -e 's/#    Option     "XkbLayout"     "de"/    Option     "Xkblayout"     "pl"/' > $T_PX/etc/X11/xorg.conf.new
  29.         mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
  30.         cp -f $T_PX/usr/share/kbd/consolefonts/lat2a-16.psfu.gz $T_PX/lib/consolefont.psfu.gz 
  31.          fi
  32.      
  33.      if test "$OPTION" = "`gettext "English"`" ; then
  34.         LANG="en_EN"
  35.          fi 
  36.  
  37.          if test "$OPTION" = "`gettext "Spanish"`" ; then
  38.         LANG="es_ES"        
  39.         cat $T_PX/etc/X11/xorg.conf | sed -e 's/#    Option     "XkbLayout"     "de"/    Option     "Xkblayout"     "es"/' > $T_PX/etc/X11/xorg.conf.new
  40.             mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
  41.         cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz 
  42.          fi
  43.  
  44.          if test "$OPTION" = "`gettext "French"`" ; then
  45.         LANG="fr_FR"
  46.         cat $T_PX/etc/X11/xorg.conf | sed -e 's/#    Option     "XkbLayout"     "de"/    Option     "Xkblayout"     "fr"/' > $T_PX/etc/X11/xorg.conf.new
  47.         mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
  48.         cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz 
  49.          fi
  50.  
  51.          if test "$OPTION" = "`gettext "Italish"`" ; then
  52.         LANG="it_IT"
  53.         cat $T_PX/etc/X11/xorg.conf | sed -e 's/#    Option     "XkbLayout"     "de"/    Option     "Xkblayout"     "it"/' > $T_PX/etc/X11/xorg.conf.new
  54.         mv $T_PX/etc/X11/xorg.conf.new $T_PX/etc/X11/xorg.conf
  55.         cp -f $T_PX/usr/share/kbd/consolefonts/lat1-16.psfu.gz $T_PX/lib/consolefont.psfu.gz 
  56.          fi
  57.      
  58.      if test "$OPTION" = "US" ; then
  59.         LANG="en_US"
  60.      fi
  61.      
  62. echo "$LANG" > $T_PX/etc/conf.d/locale
  63.  
  64.