diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-07-21 15:37:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-07-21 15:37:52 +0000 |
commit | e705a841ebfd1388b194f81f381a7cce0f882bba (patch) | |
tree | 4016497a9d38c5be579a8faa9b1e343c853c22ec /mdkapplet | |
parent | 678a7fd689f899c13fe0a45662e1cd1d7739f5d7 (diff) | |
download | mgaonline-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-x | mdkapplet | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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")), |