home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / clients / inst_features.ycp < prev    next >
Text File  |  2006-11-29  |  2KB  |  56 lines

  1. /**
  2.  * Module:    inst_features.ycp
  3.  *
  4.  * Authors:    Anas Nashif <nashif@suse.de>
  5.  *
  6.  * Purpose:     Enable all the set features in the control file
  7.                 before going into proposal
  8.  * $Id: inst_features.ycp 23393 2005-05-16 08:54:28Z jsrain $
  9.  */
  10. {
  11.     textdomain "installation";
  12.  
  13.     import "ProductFeatures";
  14.     import "Timezone";
  15.     import "Keyboard";
  16.     import "Language";
  17.     import "Installation";
  18.     import "Console";
  19.     import "RunlevelEd";
  20.  
  21.     // Timezone
  22.     if (ProductFeatures::GetStringFeature ("globals", "timezone") != "")
  23.     {
  24.         Timezone::Set( ProductFeatures::GetStringFeature ("globals", "timezone"), true );
  25.     }
  26.  
  27.     // Keyboard
  28.     if (ProductFeatures::GetStringFeature ("globals", "keyboard") != "")
  29.     {
  30.         Keyboard::default_kbd = ProductFeatures::GetStringFeature ("globals", "keyboard");
  31.         Keyboard::SetConsole( ProductFeatures::GetStringFeature ("globals", "keyboard"));
  32.         Keyboard::SetX11( ProductFeatures::GetStringFeature ("globals", "keyboard") );
  33.     }
  34.  
  35.     // Runlevel
  36.     if (ProductFeatures::GetStringFeature ("globals", "runlevel") != "")
  37.     {
  38.         RunlevelEd::default_runlevel = ProductFeatures::GetStringFeature ("globals", "runlevel");
  39.     }
  40.  
  41.     if (ProductFeatures::GetStringFeature ("globals", "language") != "")
  42.     {
  43.         string language = ProductFeatures::GetStringFeature ("globals", "language");
  44.         // Set it in the Language module.
  45.         Language::Set( language );
  46.  
  47.         // Set Console font
  48.         Console::SelectFont( language );
  49.  
  50.         // Set it in YaST2
  51.         Language::WfmSetLanguage();
  52.     }
  53.  
  54.     return `auto;
  55. }
  56.