From: intrigeri Date: Sun, 2 Nov 2008 17:54:53 +0000 (+0100) Subject: po plugin: fix targetpage for home page's translations X-Git-Tag: 3.15~408^2~1 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/37a9e642910628b021f0dd3cf9203f7f76f3a7cd?ds=sidebyside po plugin: fix targetpage for home page's translations Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 4608f59c7..88f8194fb 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -225,7 +225,7 @@ sub mytargetpage ($$) { #{{{ if (istranslation($page)) { my ($masterpage, $lang) = ($page =~ /(.*)[.]([a-z]{2})$/); - if (! $config{usedirs} || $page eq 'index') { + if (! $config{usedirs} || $masterpage eq 'index') { return $masterpage . "." . $lang . "." . $ext; } else {