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 >
Wrap
Text File
|
2006-11-29
|
2KB
|
56 lines
/**
* Module: inst_features.ycp
*
* Authors: Anas Nashif <nashif@suse.de>
*
* Purpose: Enable all the set features in the control file
before going into proposal
* $Id: inst_features.ycp 23393 2005-05-16 08:54:28Z jsrain $
*/
{
textdomain "installation";
import "ProductFeatures";
import "Timezone";
import "Keyboard";
import "Language";
import "Installation";
import "Console";
import "RunlevelEd";
// Timezone
if (ProductFeatures::GetStringFeature ("globals", "timezone") != "")
{
Timezone::Set( ProductFeatures::GetStringFeature ("globals", "timezone"), true );
}
// Keyboard
if (ProductFeatures::GetStringFeature ("globals", "keyboard") != "")
{
Keyboard::default_kbd = ProductFeatures::GetStringFeature ("globals", "keyboard");
Keyboard::SetConsole( ProductFeatures::GetStringFeature ("globals", "keyboard"));
Keyboard::SetX11( ProductFeatures::GetStringFeature ("globals", "keyboard") );
}
// Runlevel
if (ProductFeatures::GetStringFeature ("globals", "runlevel") != "")
{
RunlevelEd::default_runlevel = ProductFeatures::GetStringFeature ("globals", "runlevel");
}
if (ProductFeatures::GetStringFeature ("globals", "language") != "")
{
string language = ProductFeatures::GetStringFeature ("globals", "language");
// Set it in the Language module.
Language::Set( language );
// Set Console font
Console::SelectFont( language );
// Set it in YaST2
Language::WfmSetLanguage();
}
return `auto;
}