summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-15 23:04:57 +0100
committerintrigeri <intrigeri@boum.org>2009-01-15 23:04:57 +0100
commit3ba976d1d3d2122a399298888e28f4c7b3fa9e41 (patch)
treee446725a9d1346ed1f9524c6e4ddb444ddcf3c6c /IkiWiki
parent9abda92324e2ae17a7437d7c0dded39cf4462649 (diff)
po: pages in underlay dirs are not translatable
Fixes build break due to read-only underlay dirs, e.g. basewiki. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 3a696fb65..babf483a7 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -665,6 +665,7 @@ sub istranslatablefile ($) {
return 0 unless defined $file;
return 0 if (defined pagetype($file) && pagetype($file) 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});
return;
}