summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-10-15 12:40:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-10-15 12:40:22 +0000
commitb9e66e17e12d755211cbfb4f4253a13bc34a5472 (patch)
tree748c7774ffa639cebde42714807ede49ec2fb8dd /perl-install/any.pm
parent11b6c151fa7ab4051cb9af92416ea63162fd184c (diff)
downloaddrakx-backup-do-not-use-b9e66e17e12d755211cbfb4f4253a13bc34a5472.tar
drakx-backup-do-not-use-b9e66e17e12d755211cbfb4f4253a13bc34a5472.tar.gz
drakx-backup-do-not-use-b9e66e17e12d755211cbfb4f4253a13bc34a5472.tar.bz2
drakx-backup-do-not-use-b9e66e17e12d755211cbfb4f4253a13bc34a5472.tar.xz
drakx-backup-do-not-use-b9e66e17e12d755211cbfb4f4253a13bc34a5472.zip
- localedrake:
o do propose "Suisse" after selecting french language (#34675) nb: it was not selected because CH is associated to de_CH whereas it also exists fr_CH. hence country_to_locales() backported from trunk
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 94be8c45f..241cb0a0e 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1036,8 +1036,9 @@ sub selectCountry {
my $country = $locale->{country};
my @countries = lang::list_countries(exclude_non_installed => !$::isInstall);
my @best = grep {
- my $h = lang::analyse_locale_name(lang::c2locale($_));
- $h->{main} eq lang::locale_to_main_locale($locale->{lang});
+ find {
+ lang::locale_to_main_locale($_) eq lang::locale_to_main_locale($locale->{lang});
+ } lang::country_to_locales($_);
} @countries;
@best == 1 and @best = ();