From: Joey Hess Date: Fri, 9 Apr 2010 22:43:25 +0000 (-0400) Subject: po: Check that translated underlay directories exist before using them for master... X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/d1a616df2ed79b1602658c5d10d54ee00afc537e po: Check that translated underlay directories exist before using them for master language. --- 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"; } } } diff --git a/debian/changelog b/debian/changelog index e14cc91f5..e985a5da8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,8 @@ ikiwiki (3.20100406) UNRELEASED; urgency=low [ Joey Hess ] * Update dependency for git-core to git transition. + * po: Check that translated underlay directories exist before using them + for master language. -- Joey Hess Sun, 04 Apr 2010 12:17:11 -0400