aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-04-09 18:43:25 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-04-09 18:43:25 -0400
commitd1a616df2ed79b1602658c5d10d54ee00afc537e (patch)
tree2a1b2a248e41ff19bb18af9a34e8f3ac35045f30 /IkiWiki/Plugin
parent1c1c76c53e1d0e713e470bb6542c5cc3cef20ad2 (diff)
downloadikiwiki-d1a616df2ed79b1602658c5d10d54ee00afc537e.tar
ikiwiki-d1a616df2ed79b1602658c5d10d54ee00afc537e.tar.gz
po: Check that translated underlay directories exist before using them for master language.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 2250a7f9f..00c58fbe5 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -174,7 +174,9 @@ sub checkconfig () {
if ($config{po_master_language}{code} ne 'en') {
# Add underlay containing translated source files
# for the master language.
- add_underlay("locale/$config{po_master_language}{code}/$underlay");
+print STDERR "added underlay locale/$config{po_master_language}{code}/$underlay\n";
+ add_underlay("locale/$config{po_master_language}{code}/$underlay")
+ if -d "$config{underlaydirbase}/locale/$config{po_master_language}{code}/$underlay";
}
}
}