From 46a9a29f5f88db3644ae8545c945012137b44503 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 14 Sep 2004 10:41:06 +0000 Subject: (selectCountry) offer to select IM if language has one preselected (else option is only availlable in advanced mode) --- perl-install/any.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index 30436d9d5..7af5881dd 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -768,8 +768,10 @@ sub selectCountry { list => \@best, sort => 1 }), { val => \$ext_country, type => 'list', format => \&lang::c2name, list => [ @countries ], advanced => scalar(@best) }, - { val => \$locale->{IM}, type => 'combo', label => N("Input method:"), sort => 0, - list => [ N_("None"), sort(lang::get_ims()) ], advanced => 1, format => sub { uc(translate($_[0])) }, }, + { val => \$locale->{IM}, type => 'combo', label => N("Input method:"), sort => 0, + list => [ N_("None"), sort(lang::get_ims()) ], format => sub { uc(translate($_[0])) }, + advanced => !$locale->{IM} || $locale->{IM} eq 'None', + }, ]) or return; $locale->{country} = $other || !@best ? $ext_country : $country; -- cgit v1.2.1