]> scripts.mit.edu Git - www/ikiwiki.git/commitdiff
improve some english
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:15:29 +0000 (13:15 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:15:29 +0000 (13:15 -0500)
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

index be7a28722845ab099a09a8108f4af0b1c0ad23c0..3837ca15e66b39142f4459a23cca91fe16d2d72c 100644 (file)
@@ -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");
                        }
                }
        }