diff options
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r-- | perl-install/lang.pm | 11 |
1 files changed, 11 insertions, 0 deletions
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 |