diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-02-16 22:25:00 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-02-16 22:25:00 +0100 |
commit | f08f3ff5a6711cf0a8b551067933eca67d48b5f9 (patch) | |
tree | 81650e508aaa5db93e1aad481634b7e380300331 | |
parent | 2f6a212af3b2805a2d2677175dadd71380ee273f (diff) | |
download | mgaonline-f08f3ff5a6711cf0a8b551067933eca67d48b5f9.tar mgaonline-f08f3ff5a6711cf0a8b551067933eca67d48b5f9.tar.gz mgaonline-f08f3ff5a6711cf0a8b551067933eca67d48b5f9.tar.bz2 mgaonline-f08f3ff5a6711cf0a8b551067933eca67d48b5f9.tar.xz mgaonline-f08f3ff5a6711cf0a8b551067933eca67d48b5f9.zip |
Remove obsolete translate_product subroutine from Mandriva times
-rwxr-xr-x | mgaapplet-config | 4 | ||||
-rw-r--r-- | mgaonline.pm | 13 |
2 files changed, 1 insertions, 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 { |