summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 407760886..060c19d43 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -736,8 +736,8 @@ sub IM2packages {
$is_kde3 = member('KDE', @sessions);
$is_kde4 = member('KDE4', @sessions);
my $per_lang = $IM_config{$locale->{IM}}{packages} || {};
- my $lang = analyse_locale_name($locale->{lang})->{main};
- my $packages = $per_lang->{$lang} || $per_lang->{generic};
+ my $main_lang = analyse_locale_name($locale->{lang})->{main};
+ my $packages = $per_lang->{$main_lang} || $per_lang->{generic};
my @pkgs = ($packages ? $packages->() : $locale->{IM},
$per_lang->{common} ? $per_lang->{common}->() : ());
@pkgs;