From: Joey Hess Date: Mon, 26 Jan 2009 18:15:29 +0000 (-0500) Subject: improve some english X-Git-Tag: 3.15~239 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/526d9dbe1029225c7a86d44a86fc1941f4f1922a 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. --- 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"); } } }