summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-11-25 19:37:39 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-11-25 19:37:39 +0000
commit9e0aa67687e9dbb772796531dd476c2a816d9d2c (patch)
tree1569877cf4c8b637a85f88030b59201c5ac13c7c /perl-install
parent57de1229b38fa4702faf8214f24d74eb7869cd3a (diff)
downloaddrakx-9e0aa67687e9dbb772796531dd476c2a816d9d2c.tar
drakx-9e0aa67687e9dbb772796531dd476c2a816d9d2c.tar.gz
drakx-9e0aa67687e9dbb772796531dd476c2a816d9d2c.tar.bz2
drakx-9e0aa67687e9dbb772796531dd476c2a816d9d2c.tar.xz
drakx-9e0aa67687e9dbb772796531dd476c2a816d9d2c.zip
(real_main) usuability: preselect first ISP of user's country
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 214d91abe..271e08d2e 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -697,6 +697,11 @@ Take a look at http://www.linmodems.org"),
require network::adsl_consts;
%adsl_data = %network::adsl_consts::adsl_data;
$adsl_old_provider = $adsl_provider;
+ if (!$adsl_provider) {
+ require lang;
+ my $locale_country = lang::c2name($::o->{locale}{country} || lang::read()->{country});
+ $adsl_provider = find { $_ =~ /^$locale_country/ } sort(keys %adsl_data);
+ }
},
name => N("Please choose your ADSL provider"),
data => sub {