From f08f3ff5a6711cf0a8b551067933eca67d48b5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 16 Feb 2015 22:25:00 +0100 Subject: Remove obsolete translate_product subroutine from Mandriva times --- mgaapplet-config | 4 +--- mgaonline.pm | 13 ------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/mgaapplet-config b/mgaapplet-config index 59113839..67175ce7 100755 --- a/mgaapplet-config +++ b/mgaapplet-config @@ -56,8 +56,6 @@ sub configure() { # config file has negative options but GUI want positive options (HIG): invbools_for_display(\%config); - - my $product = translate_product(); my $res = fill_n_run_portable_dialog( @@ -82,7 +80,7 @@ sub configure() { step_increment => 1, value_ref => \$config{FIRST_CHECK_DELAY}) ], [ gtknew('CheckButton', - text => N("Check for newer \"%s\" releases", $product), + text => N("Check for newer Mageia releases"), active_ref => \$config{DO_NOT_ASK_FOR_DISTRO_UPGRADE}, ), ], diff --git a/mgaonline.pm b/mgaonline.pm index 62b7fe4a..f2018d50 100644 --- a/mgaonline.pm +++ b/mgaonline.pm @@ -46,7 +46,6 @@ our @EXPORT = qw(find_current_distro get_stale_upgrade_filename get_urpmi_options read_sys_config - translate_product xml2perl %config $config_file @@ -139,18 +138,6 @@ sub fork_exec { run_program::raw({ detach => 1 }, @_); } -sub translate_product { - my ($o_product) = @_; - my %strings = ( - flash => N("Mageia Flash"), - free => N("Mageia Free"), - mini => N("Mageia Mini"), - one => N("Mageia One"), - ); - $o_product ||= lc $product_id->{product}; - $strings{$o_product} || $o_product; -} - # TODO Move all product.id handling to a separate module # (MDV::ProductId?) sub get_product_info { -- cgit v1.2.1