summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/any.pm5
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/lang.pm11
4 files changed, 18 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index f801a1f61..679bf56d2 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- localedrake:
+ o do propose "Suisse" after selecting french language (#34675)
- draksec:
o fix switching from "no_password" to "_password" (#34490)
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 = ();
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 20163ba6b..02bb51fd3 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,5 @@
+- do propose "Suisse" after selecting french language (#34675)
+
Version 10.4.238 - 5 October 2007, by Pascal "Pixel" Rigaux
- do not use pseudo Protocol "vboxmouse" during install, use "IMPS/2" instead
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index fbe28b1f4..555d811a8 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -504,6 +504,17 @@ sub getLANGUAGE {
locale_to_main_locale($lang)));
}
+sub country_to_locales {
+ my ($country) = @_;
+
+ my $locale = c2locale($country) or return;
+
+ uniq($locale, grep {
+ my $h = analyse_locale_name($_) or internal_error();
+ $h->{country} eq $country;
+ } @locales);
+}
+
#-------------------------------------------------------------
#
# IM configuration hash tables