aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/po.pm1
-rw-r--r--doc/plugins/po.mdwn6
2 files changed, 3 insertions, 4 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;
}
diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn
index a064c0f7b..4ed2c6f7c 100644
--- a/doc/plugins/po.mdwn
+++ b/doc/plugins/po.mdwn
@@ -481,10 +481,8 @@ Robustness tests
### Enabling/disabling the plugin
-- enabling the plugin with `po_translatable_pages` set to blacklist:
- **breaks** due to read-only basewiki
-- enabling the plugin with `po_translatable_pages` set to whitelist:
- **OK**
+- enabling the plugin with `po_translatable_pages` set to blacklist: **OK**
+- enabling the plugin with `po_translatable_pages` set to whitelist: **OK**
- enabling the plugin without `po_translatable_pages` set: **OK**
- disabling the plugin: **OK**