summaryrefslogtreecommitdiffstats
path: root/perl-install/install/install2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-18 15:41:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-18 15:41:25 +0000
commit901f3f8e24d58d0d1d553c4424b8bdb3e84440b7 (patch)
tree79d0ddc38b32d6dd9f97ed261c769ec85aad7dac /perl-install/install/install2.pm
parent782cf2217a9d00abb06c351db439dc8dd6ca870e (diff)
downloaddrakx-901f3f8e24d58d0d1d553c4424b8bdb3e84440b7.tar
drakx-901f3f8e24d58d0d1d553c4424b8bdb3e84440b7.tar.gz
drakx-901f3f8e24d58d0d1d553c4424b8bdb3e84440b7.tar.bz2
drakx-901f3f8e24d58d0d1d553c4424b8bdb3e84440b7.tar.xz
drakx-901f3f8e24d58d0d1d553c4424b8bdb3e84440b7.zip
- fix setting default lang (which is given by gfxboot)
nb: one must not set $o->{locale}{lang} directly, otherwise $o->{locale}{country} will not have a valid value, hence some issues...
Diffstat (limited to 'perl-install/install/install2.pm')
-rw-r--r--perl-install/install/install2.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index c18fb03cf..56226b55d 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -333,8 +333,8 @@ sub main {
map_each {
my ($n, $v) = @_;
my $f = ${{
- lang => sub { $o->{locale}{lang} = $v },
- flang => sub { $o->{locale}{lang} = $v; push @::auto_steps, 'selectLanguage' },
+ lang => sub { $o->{lang} = $v },
+ flang => sub { $o->{lang} = $v; push @::auto_steps, 'selectLanguage' },
langs => sub { $o->{locale}{langs} = +{ map { $_ => 1 } split(':', $v) } },
method => sub { $o->{method} = $v },
pcmcia => sub { $o->{pcmcia} = $v },
@@ -520,6 +520,11 @@ sub main {
mouse::load_modules($o->{mouse});
}
+ #- for auto_install compatibility with old $o->{lang},
+ #- and also for --lang and --flang
+ if ($o->{lang}) {
+ put_in_hash($o->{locale}, lang::system_locales_to_ourlocale($o->{lang}, $o->{lang}));
+ }
lang::set($o->{locale});
# keep the result otherwise monitor-edid does not return good results afterwards