From b0b87d15843db10b6ff7a4e30ff8bf110e229075 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 10 Oct 2008 18:01:06 +0200 Subject: po plugin: respect documented convention to store pagestate Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 6 +++--- 1 file 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"); } -- cgit v1.2.3