From 526d9dbe1029225c7a86d44a86fc1941f4f1922a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Jan 2009 13:15:29 -0500 Subject: improve some english I'm still not happy with the clarity of this warning message. I don't understand when it could happen or why a warning is needed. --- IkiWiki/Plugin/po.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index be7a28722..3837ca15e 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -537,7 +537,7 @@ sub formbuilder (@) { # This cannot be done in the formbuilder_setup hook as the list of types is # computed later. if ($form->field("do") eq "create") { - for my $field ($form->field) { + foreach my $field ($form->field) { next unless "$field" eq "type"; if ($field->type eq 'select') { # remove po from the list of types @@ -547,7 +547,7 @@ sub formbuilder (@) { else { # make sure the default value is not po; # does this case actually happen? - debug "po(formbuilder) ".gettext("type field is not select - not implemented yet"); + debug "po(formbuilder) ".gettext("type field is not selected - not implemented yet"); } } } -- cgit v1.2.3