summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-07-21 15:37:52 +0000
committerThierry Vignaud <tv@mandriva.org>2009-07-21 15:37:52 +0000
commite705a841ebfd1388b194f81f381a7cce0f882bba (patch)
tree4016497a9d38c5be579a8faa9b1e343c853c22ec /mdkapplet
parent678a7fd689f899c13fe0a45662e1cd1d7739f5d7 (diff)
downloadmgaonline-e705a841ebfd1388b194f81f381a7cce0f882bba.tar
mgaonline-e705a841ebfd1388b194f81f381a7cce0f882bba.tar.gz
mgaonline-e705a841ebfd1388b194f81f381a7cce0f882bba.tar.bz2
mgaonline-e705a841ebfd1388b194f81f381a7cce0f882bba.tar.xz
mgaonline-e705a841ebfd1388b194f81f381a7cce0f882bba.zip
(prepare_add_restricted) enable to have nice strings per product
instead of hardcoding powerpack ; add string for MES5 as example (though MES5 does not offer to add restricted media)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 565689ba..7b5573c7 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -769,7 +769,11 @@ 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"));
- N("Mandriva PowerPack");
+ my %strings = (
+ PowerPack => N("Mandriva PowerPack"),
+ Server => N("Mandriva Enterprise Server"),
+ );
+ my $product = $product_id->{product};
my $res =
fill_n_run_portable_dialog(
$w,
@@ -777,7 +781,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.",
- translate($product_id->{product})) . "\n\n" .
+ $strings{$product} || $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")),