From 14e84a07992a35579ad8d537394e6941881bdfee Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 26 Feb 2008 15:12:53 +0000 Subject: allow to override component name --- lib/network/thirdparty.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.")), -- cgit v1.2.1