]> sipb.mit.edu Git - ikiwiki.git/commitdiff
bugfix: Avoid generating po files for files that are not httmlizable
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 19 Jul 2009 11:46:10 +0000 (13:46 +0200)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 19 Jul 2009 11:46:10 +0000 (13:46 +0200)
IkiWiki/Plugin/po.pm
doc/plugins/po.mdwn

index cdb9271e4529ff31bef653d5154ff34808629cf4..3d358b3e2a18137d244f6ea4c995433aec05b3c9 100644 (file)
@@ -656,7 +656,8 @@ sub istranslatablefile ($) {
        my $file=shift;
 
        return 0 unless defined $file;
-       return 0 if defined pagetype($file) && pagetype($file) eq 'po';
+       my $type=pagetype($file);
+       return 0 if ! defined $type || $type eq 'po';
        return 0 if $file =~ /\.pot$/;
        return 0 unless -e "$config{srcdir}/$file"; # underlay dirs may be read-only
        return 1 if pagespec_match(pagename($file), $config{po_translatable_pages});
index 7b1582dd7dc25a5fa7a245271e9abed6fa42a132..98526a55aac3421425cba44a82ddeef5a9520353 100644 (file)
@@ -250,15 +250,6 @@ once [[intrigeri]]'s `meta` branch is merged.
 An integration branch, called `meta-po`, merges [[intrigeri]]'s `po`
 and `meta` branches, and thus has thise additional features.
 
-Misc Bugs
----------
-
-If `po_translatable_pages` matches a file that is not a wiki
-page, a po file will still be generated for it. There
-is a missing check in there to make sure that the file is a
-page. (Do it by calling `pagetype` and see if it returns a defined
-value.) --[[Joey]] 
-
 Documentation
 -------------