summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/localedrake
blob: 231c528ea949a423d742fedff59b92529df5e631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/perl

use lib qw(/usr/lib/libDrakX);

use standalone;     #- warning, standalone must be loaded very first, for 'explanations'

use interactive;
use common;
use lang;
use any;

my ($klang, $kcountry, $apply);

foreach (@ARGV) {
    $apply = 1 if /--apply/;
    $klang = $1 if /--kde_lang=(.*)/;
    $kcountry = uc($1) if /--kde_country=(.*)/;
}

if (defined $klang) {
    $klang or exit(-1);
    my $lang = member($klang, lang::list_langs()) ? $klang : 'en_US';
    my $country = member($kcountry, lang::list_countries()) ? $kcountry : 'US';
    my $locale = lang::read($>);
    $klang and $locale->{lang} = $lang;
    $kcountry and $locale->{country} = $country;
    lang::write_and_install($locale, do_pkgs_standalone->new, $>, 'dont_touch_kde_files') if $apply;

    #- help KDE defaulting to the right charset
    print lang::charset2kde_charset(lang::l2charset($lang)), "\n";
    exit(0);
}

my $locale = lang::read($>);
my $in = 'interactive'->vnew;

$ugtk3::wm_icon = "localedrake";
$::Wizard_title = N("LocaleDrake");

any::selectLanguage_and_more_standalone($in, $locale);

if ($>) {
    my @required_packages = lang::IM2packages($locale);
    my @missing_packages = difference2(\@required_packages, [ $in->do_pkgs->are_installed(@required_packages) ]);
    $in->ask_warn(N("Warning"),
		  N("You should install the following packages: %s", 
		    join(
			#-PO: the following is used to combine packages names. eg: "initscripts, harddrake, yudit"
			N(", "),
			@missing_packages,
		    ),
		)
	      ) if @missing_packages;
}
lang::write_and_install($locale, $in->do_pkgs, $>);

any::ask_for_X_restart($in);
'deletions'>-1/+14 * service_harddrake: Do not switch a display driver if speedboot has already st...Anssi Hannula2011-04-172-0/+10 * service_harddrake: ask for a reboot after a driver switch if needed, and load...Anssi Hannula2011-04-172-2/+25 * service_harddrake: handle adding/removing nokmsboot when switching the driver.Anssi Hannula2011-04-172-0/+5 * service_harddrake: Factorize ask_with_timeout for a following commit.Anssi Hannula2011-04-172-12/+20 * service_harddrake: Adapt from bootsplash to plymouth.Anssi Hannula2011-04-172-7/+5 * - fixed header so msgfmt wont give any errorsOliver Burger2011-04-161-4/+3 * - any.pm: make it easier for rebranding by using %s magicAhmad Samir2011-04-0773-783/+1145 * - s/Ldap/LDAP/ in the po/pot files manually so as not to fuzzy the strings un...Ahmad Samir2011-04-0771-174/+174 * - keep it "Hard drive detection", since the tree on the left in the installerAhmad Samir2011-04-071-2/+2 * - s/can not/cannot/ manually in the po/pot files so as not the make the stringsAhmad Samir2011-04-07285-1456/+1456 * - revert 's,/boot partition,separate /boot partition,', .po/pot files shouldn'tAhmad Samir2011-04-0571-214/+214 * - 's!Just select your tv card parameters!Just select your TV card parameters!'Ahmad Samir2011-04-0472-73/+73 * - s/api/API/Ahmad Samir2011-04-0472-173/+173 * - perl -pi -e 's!trouble shoot!troubleshoot!'Ahmad Samir2011-04-0472-145/+145 * - perl -pi -e 's!you can pick one in the above list!you can pick one from the...Ahmad Samir2011-04-0472-72/+72 * - perl -pi -e 's!For this, create a partition!To accomplish this, create a pa...Ahmad Samir2011-04-0472-72/+72 * - perl -pi -e 's!"Search new servers"!"Search for new servers"!'Ahmad Samir2011-04-0472-72/+72 * - perl -pi -e 's!Something bad is happening on your drive!Something bad is ha...Ahmad Samir2011-04-0472-72/+72 * - perl -pi -e 's!"Activate ethernet cards promiscuity check."!"Activate Ether...Ahmad Samir2011-04-0472-72/+72 * - perl -pi -e 's!Posix!POSIX!'Ahmad Samir2011-04-0472-88/+88 * - perl -pi -e 's!Hard drive!Hard disk drive!' (except install/steps_list.pm)Ahmad Samir2011-04-04