summaryrefslogtreecommitdiffstats
path: root/mdkonline.pm
diff options
context:
space:
mode:
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;
}