summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
authorJoão Victor Duarte Martins <jvictor@mandriva.com>2010-05-17 16:02:49 +0000
committerJoão Victor Duarte Martins <jvictor@mandriva.com>2010-05-17 16:02:49 +0000
commit8679124a6f88b1ff0c0d69e07633a6d7c7a30e75 (patch)
treef23a1595d1bb374b57367d4ec735a86fba0c1ac4 /mdkonline.pm
parentff052d48eac1c77d39a958022876a432f2fdc902 (diff)
downloadmgaonline-8679124a6f88b1ff0c0d69e07633a6d7c7a30e75.tar
mgaonline-8679124a6f88b1ff0c0d69e07633a6d7c7a30e75.tar.gz
mgaonline-8679124a6f88b1ff0c0d69e07633a6d7c7a30e75.tar.bz2
mgaonline-8679124a6f88b1ff0c0d69e07633a6d7c7a30e75.tar.xz
mgaonline-8679124a6f88b1ff0c0d69e07633a6d7c7a30e75.zip
* mdkonline.pm (translate_product): Updated to translate a product
passed as parameter. * mdkapplet_gui.pm: Moved run_no_rights_dialog.
Diffstat (limited to 'mdkonline.pm')
-rw-r--r--mdkonline.pm17
1 files changed, 9 insertions, 8 deletions
diff --git a/mdkonline.pm b/mdkonline.pm
index d6964d98..86f9e19d 100644
--- a/mdkonline.pm
+++ b/mdkonline.pm
@@ -165,16 +165,17 @@ sub fork_exec {
run_program::raw({ detach => 1 }, @_);
}
-sub translate_product() {
+sub translate_product {
+ my ($product) = @_;
my %strings = (
- Flash => N("Mandriva Flash"),
- Free => N("Mandriva Free"),
- Mini => N("Mandriva Mini"),
- One => N("Mandriva One"),
- PowerPack => N("Mandriva PowerPack"),
- Server => N("Mandriva Enterprise Server"),
+ flash => N("Mandriva Flash"),
+ free => N("Mandriva Free"),
+ mini => N("Mandriva Mini"),
+ one => N("Mandriva One"),
+ powerPack => N("Mandriva PowerPack"),
+ server => N("Mandriva Enterprise Server"),
);
- my $product = $product_id->{product};
+ $product or $product = lc $product_id->{product};
$strings{$product} || $product;
}