summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-12 17:52:00 +0100
committerintrigeri <intrigeri@boum.org>2008-11-12 17:52:00 +0100
commit2f27eb969393e9df6617f09004ae2357fa15cd0c (patch)
treef458e0dd4c46a437937be605f1faff5d54038b92
parente18a9d9a881897cbef82adfd992fe0a38c86d8d4 (diff)
po: ooops, fixed just introduced bug
(I just removed in istranslation and _istranslation the dependency on istranslatable... which broke things in a subtle way, hard to see at the first glance.) Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r--IkiWiki/Plugin/po.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 402e960a3..8ece342a8 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -522,7 +522,8 @@ sub _istranslation ($) { #{{{
&& defined $pagesources{$masterpage}
&& defined $config{po_slave_languages}{$lang});
- return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang);
+ return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang)
+ if istranslatable($masterpage);
} #}}}
sub istranslation ($) { #{{{
@@ -531,7 +532,8 @@ sub istranslation ($) { #{{{
if (1 < (my ($masterpage, $lang) = _istranslation($page))) {
my $hasleadingslash = ($masterpage=~s#^/##);
$translations{$masterpage}{$lang}=$page unless exists $translations{$masterpage}{$lang};
- return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang);
+ return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang)
+ if istranslatable($masterpage);
}
return;
} #}}}