diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-11-26 15:46:01 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-11-26 15:46:01 +0000 |
commit | 0e98690c1363d7d349f58de79c1470f70d190df0 (patch) | |
tree | 4891dc9959d092fd186d8c9174058b32421e0b38 /mdkonline.pm | |
parent | 7a2d6688282e869e90d12a71ce21b339f8dae7cf (diff) | |
download | mgaonline-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 'mdkonline.pm')
-rw-r--r-- | mdkonline.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mdkonline.pm b/mdkonline.pm index b605e976..5b7906e7 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -36,6 +36,7 @@ our @EXPORT = qw(fork_exec get_stale_upgrade_filename is_enterprise_media_supported is_restricted_media_supported + translate_product xml2perl $product_id $root); @@ -79,6 +80,15 @@ sub fork_exec { run_program::raw({ detach => 1 }, @_); } +sub translate_product() { + my %strings = ( + PowerPack => N("Mandriva PowerPack"), + Server => N("Mandriva Enterprise Server"), + ); + my $product = $product_id->{product}; + $strings{$product} || $product; +} + sub get_banner { my ($o_title) = @_; Gtk2::Banner->new( |