/**
 * 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 20005 2004-10-27 13:59:41Z arvin $
 */
{
    textdomain "installation";

    import "ProductFeatures";
    import "Timezone";
    import "Keyboard";
    import "Language";
    import "Installation";
    import "Console";
    import "RunlevelEd";

    // Timezone
    if (ProductFeatures::timezone != "")
    {
        Timezone::Set( ProductFeatures::timezone, true );
    }

    // Keyboard
    if (ProductFeatures::keyboard != "")
    {
        Keyboard::default_kbd = ProductFeatures::keyboard;
        Keyboard::SetConsole( ProductFeatures::keyboard);
        Keyboard::SetX11( ProductFeatures::keyboard );
    }

    // Runlevel
    if (ProductFeatures::runlevel != "")
    {
        RunlevelEd::default = ProductFeatures::runlevel;
    }

    if (ProductFeatures::language != "")
    {
        string language = ProductFeatures::language;
        // Set it in the Language module.
        Language::Set( language );

        // Set Console font
        Console::SelectFont( language );

        // Set it in YaST2
        Language::WfmSetLanguage();
    }

    return `auto;
}
