From 4c9864e08d1ca96728d98a224ce279edadcb7820 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 23 Feb 2006 10:54:56 +0000 Subject: create lang::lang_changed() to ensure {country} is set according to the lang (useful for finish-install where choosing fr gives fr_US) --- perl-install/install_steps.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index dd4ab0370..ab37e3043 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -104,9 +104,7 @@ sub selectLanguage { $o->{locale}{langs} ||= { $o->{locale}{lang} => 1 }; if (!exists $o->{locale}{country}) { - my $h = lang::analyse_locale_name(lang::l2locale($o->{locale}{lang})); - $o->{locale}{country} = $h->{country} if $h->{country}; - $o->{locale}{IM} = lang::get_default_im($o->{locale}{lang}); + lang::lang_changed($o->{locale}); } lang::set($o->{locale}, !$o->isa('interactive::gtk')); -- cgit v1.2.1