summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-10 18:01:06 +0200
committerintrigeri <intrigeri@boum.org>2008-10-18 15:49:09 +0200
commitb0b87d15843db10b6ff7a4e30ff8bf110e229075 (patch)
tree3c0ec683f392d374f9b3ed0558596c63124db882
parent23dccccdf22e09f1f9f0b8142a16983b93eaed5f (diff)
po plugin: respect documented convention to store pagestate
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r--IkiWiki/Plugin/po.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 4b2990921..d7f245e96 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -160,7 +160,7 @@ sub preprocess_translatable (@) { #{{{
my %params = @_;
my $match = exists $params{match} ? $params{match} : $params{page};
- $pagestate{$params{page}}{po_translatable}{$match}=1;
+ $pagestate{$params{page}}{po}{translatable}{$match}=1;
return "" if ($params{silent} && IkiWiki::yesno($params{silent}));
return sprintf(gettext("pages %s set as translatable"), $params{match});
@@ -232,8 +232,8 @@ sub match_istranslatable ($;@) { #{{{
}
foreach my $registering_page (keys %pagestate) {
- if (exists $pagestate{$registering_page}{po_translatable}) {
- foreach my $pagespec (sort keys %{$pagestate{$registering_page}{po_translatable}}) {
+ if (exists $pagestate{$registering_page}{po}{translatable}) {
+ foreach my $pagespec (sort keys %{$pagestate{$registering_page}{po}{translatable}}) {
if (pagespec_match($page, $pagespec, location => $registering_page)) {
return IkiWiki::SuccessReason->new("is set as translatable on $registering_page");
}