diff options
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/harddrake2 | 4 | ||||
-rw-r--r-- | perl-install/standalone/localedrake | 4 | ||||
-rwxr-xr-x | perl-install/standalone/logdrake | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index e9dbbdc72..b4bb9c606 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -109,7 +109,7 @@ my @menu_items = create_dialog(N("Harddrake help"), N("Description of the fields:\n\n") #-PO Do not alter the <span ..> and </span> tags - . join("\n\n", map { if_($fields{$_}[0], formatAlaTeX("<span foreground=\"royalblue3\">$fields{$_}[0]:</span> $fields{$_}[1]")) } sort keys %$current_device), { use_markup => 1, if_(!$::isEmbedded, transient => $w->{window}), height => 400, scroll => 1 }) + . join("\n\n", map { if_($fields{$_}[0], formatAlaTeX(qq(<span foreground="royalblue3">$fields{$_}[0]:</span> $fields{$_}[1]))) } sort keys %$current_device), { use_markup => 1, if_(!$::isEmbedded, transient => $w->{window}), height => 400, scroll => 1 }) } else { create_dialog(N("Select a device !"), N("Once you've selected a device, you'll be able to see the device information in fields displayed on the right frame (\"Information\")"), { if_(!$::isEmbedded, transient => $w->{window}) }) @@ -219,7 +219,7 @@ $tree->get_selection->signal_connect('changed' => sub { } sort keys %$current_device ]); foreach (keys %$current_device) { - print "Warning: skip \"$_\" field => \"$current_device->{$_}\"\n\n" unless $fields{$_}[0]; + print qq(Warning: skip "$_" field => "$current_device->{$_}"\n\n) unless $fields{$_}[0]; }; # if we've valid driver, let's offer to configure it, else hide buttons diff --git a/perl-install/standalone/localedrake b/perl-install/standalone/localedrake index 4f5a433e3..11187758c 100644 --- a/perl-install/standalone/localedrake +++ b/perl-install/standalone/localedrake @@ -35,10 +35,10 @@ my $locale = lang::read('', $>); my $in = 'interactive'->vnew; my $one_lang_only; -sub select_language { +sub select_language() { $locale->{lang} = any::selectLanguage($in, $locale->{lang}); } -sub select_country { +sub select_country() { any::selectCountry($in, $locale); } diff --git a/perl-install/standalone/logdrake b/perl-install/standalone/logdrake index f97766b65..fd38b9614 100755 --- a/perl-install/standalone/logdrake +++ b/perl-install/standalone/logdrake @@ -196,7 +196,7 @@ gtkadd($my_win->{window}, $::Wizard_no_cancel = 1; $::WizardWindow->destroy if defined $::WizardWindow; undef $::WizardWindow; - } elsif ($err) { print "CRITICAL: \"$err\" =>\n" } + } elsif ($err) { print qq(CRITICAL: "$err" =>\n) } })), gtksignal_connect(Gtk2::Button->new(N("Save")), clicked => \&save), gtksignal_connect(Gtk2::Button->new($::isEmbedded ? N("Cancel") : N("Quit")), clicked => \&quit) @@ -409,7 +409,7 @@ my $initdir = "/etc/init.d"; webmin => N("Webmin Service"), xinetd => N("Xinetd Service") }; - my @installed_d = (); + my @installed_d; foreach my $serv (keys %$service) { -e "$initdir/$serv" && push @installed_d, $serv; } @@ -422,7 +422,7 @@ my $initdir = "/etc/init.d"; $cron .= "#- check services\n"; foreach (keys %services_to_check) { next unless $services_to_check{$_}; - $cron .= "\$r .= \"Service $_ ($service->{$_} is not running)\\n\" unless -e \"/var/lock/subsys/$_\";\n"; + $cron .= qq(\$r .= "Service $_ ($service->{$_} is not running)\\n" unless -e "/var/lock/subsys/$_";\n); } step_load: @@ -451,7 +451,7 @@ EOF { label => "" }, { label => "Email", val => \$email }, ]) or goto step_load; - if ($email !~ /[\w.-]*@[\w.-]/) { + if ($email !~ /[\w.-]*\@[\w.-]/) { err_dialog(N("Wrong email"), N("\"%s\" is not a valid email!")); goto step_output; } |