summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-26 15:46:01 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-26 15:46:01 +0000
commit0e98690c1363d7d349f58de79c1470f70d190df0 (patch)
tree4891dc9959d092fd186d8c9174058b32421e0b38 /mdkapplet
parent7a2d6688282e869e90d12a71ce21b339f8dae7cf (diff)
downloadmgaonline-0e98690c1363d7d349f58de79c1470f70d190df0.tar
mgaonline-0e98690c1363d7d349f58de79c1470f70d190df0.tar.gz
mgaonline-0e98690c1363d7d349f58de79c1470f70d190df0.tar.bz2
mgaonline-0e98690c1363d7d349f58de79c1470f70d190df0.tar.xz
mgaonline-0e98690c1363d7d349f58de79c1470f70d190df0.zip
(translate_product) extract it from prepare_add_restricted() into a
shared module (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet7
1 files changed, 1 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index ddb11fc7..fab05682 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -827,11 +827,6 @@ sub prepare_add_restricted() {
my $warn_me = text2bool($local_config{DO_NOT_ASK_FOR_RESTRICTED});
return if $warn_me;
my $w = new_portable_dialog(N("New medium available"));
- my %strings = (
- PowerPack => N("Mandriva PowerPack"),
- Server => N("Mandriva Enterprise Server"),
- );
- my $product = $product_id->{product};
my $res =
fill_n_run_portable_dialog(
$w,
@@ -839,7 +834,7 @@ sub prepare_add_restricted() {
get_banner(N("New medium available")),
gtknew('Label_Left', text =>
N("You use '%s' distribution and therefore have privileged access to additional software.",
- $strings{$product} || $product) . "\n\n" .
+ translate_product()) . "\n\n" .
N("Do you want to install this additional software repository?"), @common),
gtknew('CheckButton', text => N("Do not ask me next time"), active_ref => \$warn_me),
create_okcancel($w, N("Next"), N("Cancel")),