summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-05-11 23:18:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-05-11 23:18:21 +0000
commitfcf8e1b52fcf5e81c5548e0b77df71f4d95430e4 (patch)
tree498491d25a0290e232f236927a37dccdc233ac27 /perl-install/install_steps_interactive.pm
parent76fdde3ca84a2cb6ce204e973f2386ac0738957b (diff)
downloaddrakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.gz
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.bz2
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.tar.xz
drakx-fcf8e1b52fcf5e81c5548e0b77df71f4d95430e4.zip
use lang::analyse_locale_name() and lang::analyse_locale_name()
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 896d60641..a0c9c9083 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -897,7 +897,7 @@ sub summary {
clicked => sub {
any::selectCountry($o, $o->{locale}) or return;
- my $pkg_locale = substr(lang::getlocale_for_country($o->{locale}{lang}, $o->{locale}{country}), 0, 2);
+ my $pkg_locale = locale_to_main_locale(lang::getlocale_for_country($o->{locale}{lang}, $o->{locale}{country}));
my @pkgs = pkgs::packagesProviding($o->{packages}, "locales-$pkg_locale");
$o->pkg_install(map { $_->name } @pkgs) if @pkgs;