diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-26 15:12:53 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-26 15:12:53 +0000 |
commit | 14e84a07992a35579ad8d537394e6941881bdfee (patch) | |
tree | 85730c3b905a2be3713ba141840ecce5f57c4c99 /lib/network/thirdparty.pm | |
parent | 172ad665d4f6da5e51828f7b0277f91ed9b18db9 (diff) | |
download | drakx-net-14e84a07992a35579ad8d537394e6941881bdfee.tar drakx-net-14e84a07992a35579ad8d537394e6941881bdfee.tar.gz drakx-net-14e84a07992a35579ad8d537394e6941881bdfee.tar.bz2 drakx-net-14e84a07992a35579ad8d537394e6941881bdfee.tar.xz drakx-net-14e84a07992a35579ad8d537394e6941881bdfee.zip |
allow to override component name
Diffstat (limited to 'lib/network/thirdparty.pm')
-rw-r--r-- | lib/network/thirdparty.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/thirdparty.pm b/lib/network/thirdparty.pm index 20bd36b..2f7952b 100644 --- a/lib/network/thirdparty.pm +++ b/lib/network/thirdparty.pm @@ -131,10 +131,11 @@ sub warn_not_found { my %opt; $opt{$_} = ref $settings->{$option} eq 'HASH' && $settings->{$option}{$_} || $settings->{$_} foreach qw(url explanations no_club no_package); my $checked = get_checked_element($settings, $driver, $option); + my $component_name = ref $settings->{$option} eq 'HASH' && translate($settings->{$option}{component_name}) || $option; $in->ask_warn(N("Error"), join(" ", ($opt{no_package} ? - N("Some components (%s) are required but aren't available for %s hardware.", $option, $settings->{name}) : + N("Some components (%s) are required but aren't available for %s hardware.", $component_name, $settings->{name}) : N("Some packages (%s) are required but aren't available.", join(', ', @packages))), join("\n\n", if_(!$opt{no_club} && !$opt{no_package}, N("These packages can be found in Mandriva Club or in Mandriva commercial releases.")), |