package install_steps_interactive; # $Id$
use diagnostics;
use strict;
use vars qw(@ISA $new_bootstrap);
@ISA = qw(install_steps);
#-######################################################################################
#- misc imports
#-######################################################################################
use common;
use partition_table qw(:types);
use partition_table_raw;
use install_steps;
use install_interactive;
use install_any;
use detect_devices;
use run_program;
use devices;
use fsedit;
use loopback;
use mouse;
use modules;
use lang;
use keyboard;
use any;
use fs;
use log;
#-######################################################################################
#- In/Out Steps Functions
#-######################################################################################
sub errorInStep($$) {
my ($o, $err) = @_;
$o->ask_warn(_("Error"), [ _("An error occurred"), common::formatError($err) ]);
}
sub kill_action {
my ($o) = @_;
$o->kill;
}
sub charsetChanged {}
#-######################################################################################
#- Steps Functions
#-######################################################################################
#------------------------------------------------------------------------------
sub selectLanguage {
my ($o) = @_;
$o->{lang} = any::selectLanguage($o, $o->{lang}, $o->{langs} ||= {});
install_steps::selectLanguage($o);
$o->charsetChanged;
$o->ask_warn('', formatAlaTeX(
"If you see this message it is because you choose a language for
which DrakX does not include a translation yet; however the fact
that it is listed means there is some support for it anyway.
That is, once GNU/Linux will be installed, you will be able to at
least read and write in that language; and possibly more (various
fonts, spell checkers, various programs translated etc. that
varies from language to language).")) if $o->{lang} !~ /^en/ && !lang::load_mo();
unless ($o->{useless_thing_accepted}) {
$o->set_help('license');
$o->{useless_thing_accepted} = $o->ask_from_list_(_("License agreement"), formatAlaTeX(
_("Introduction
The operating system and the different components available in the Mandrake Linux distribution
shall be called the \"Software Products\" hereafter. The Software Products include, but are not
restricted to, the set of programs, methods, rules and documentation related to the operating
system and the different components of the Mandrake Linux distribution.
1. License Agreement
Please read carefully this document. This document is a license agreement between you and
MandrakeSoft S.A. which applies to the Software Products.
By installing, duplicating or using the Software Products in any manner, you explicitly
accept and fully agree to conform to the terms and conditions of this License.
If you disagree with any portion of the License, you are not allowed to install, duplicate or use
the Software Products.
Any attempt to install, duplicate or use the Software Products in a manner which does not comply
with the terms and conditions of this License is void and will terminate your rights under this
License. Upon termination of the License, you must immediately destroy all copies of the
Software Products.
2. Limited Warranty
The Software Products and attached documentation are provided \"as is\", with no warranty, to the
extent permitted by law.
MandrakeSoft S.A. will, in no circumstances and to the extent permitted by law, be liable for any special,
incidental, direct or indirect damages whatsoever (including without limitation damages for loss of
business, interruption of business, financial loss, legal fees and penalties resulting from a court
judgment, or any other consequential loss) arising out of the use or inability to use the Software
Products, even if MandrakeSoft S.A. has been advised of the possibility or occurance of such
damages.
LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE IN SOME COUNTRIES
To the extent permitted by law, MandrakeSoft S.A. or its distributors will, in no circumstances, be
liable for any special, incidental, direct or indirect damages whatsoever (including without
limitation damages for loss of business, interruption of business, financial loss, legal fees
|