]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/orphans.pm
more idiomatic use of foreach
[ikiwiki.git] / IkiWiki / Plugin / orphans.pm
index cf74c9b794bb4977d0ed8eb17fbc6e36ed045ba0..7c938ef742da0b6793542151bcfd96465eef877b 100644 (file)
@@ -34,7 +34,7 @@ sub preprocess (@) {
        }
        
        my @orphans;
-       my $discussion=gettext("discussion");
+       my $discussion=lc(gettext("Discussion"));
        foreach my $page (pagespec_match_list(
                        [ grep { ! $linkedto{$_} && $_ ne 'index' }
                                keys %pagesources ],
@@ -49,7 +49,7 @@ sub preprocess (@) {
                push @orphans, $page;
        }
        
-       return gettext("All pages are linked to by other pages.") unless @orphans;
+       return gettext("All pages have other pages linking to them.") unless @orphans;
        return "<ul>\n".
                join("\n",
                        map {