From d8f21c35278cbf9cae498f9723e8e331953db88c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 10 Jan 2014 11:39:54 +0100 Subject: simplify after converting to UIM --- control-center | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/control-center b/control-center index 85ceea07..c2ee153b 100755 --- a/control-center +++ b/control-center @@ -606,13 +606,6 @@ my $pending_app = 0; my $help_on_context = 'drakconf-intro'; -#-PO Translators, please keep all "/" charaters !!! -my %options = ( - 'show_log' => [ N("/_Options"), N("/Display _Logs") ], - 'embedded_mode' => [ N("/_Options"), N("/_Embedded Mode") ], - 'wiz_expert' => [ N("/_Options"), N("/Expert mode in _wizards") ], -); - my $mga_rel = common::mageia_release(); my ($steps, $view); @@ -1028,14 +1021,7 @@ foreach my $label (difference2([ keys %programs ], [ keys %tool_callbacks ])) { foreach (keys %check_boxes) { my $widget = $check_boxes{$_}; - if (defined $widget) { - $widget->set_active($option_values{$_}); - } else { - print STDERR qq(BUG with LANGUAGE "$ENV{LANGUAGE}" for "$_"\n); - err_dialog(N("Error"), N("There's a bug in translations of your language (%s) - -Please report that bug.", $ENV{LANGUAGE})); - } + $widget->set_active($option_values{$_}); } # "wait while launching a program" area : -- cgit v1.2.1