diff options
author | intrigeri <intrigeri@boum.org> | 2008-10-08 20:31:46 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-10-18 15:49:08 +0200 |
commit | 1975d4d35fa47a9f6846d2b4f9c8d1b6fc04ebbf (patch) | |
tree | 5b849190476fc20d8b7098a1b524498a449968ab /IkiWiki/Plugin | |
parent | 258c49ae55b96bb8dcc779f4c61b5ae6cdd280a5 (diff) |
po plugin: use pagespec_match() instead of direct match_istranslation calls
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 3546bef88..933f4d26e 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -52,7 +52,7 @@ sub targetpage (@) { #{{{ my $page=$params{page}; my $ext=$params{ext}; - if (IkiWiki::PageSpec::match_istranslation($page, $page)) { + if (pagespec_match($page,"istranslation()")) { my ($masterpage, $lang) = ($page =~ /(.*)[.]([a-z]{2})$/); if (! $config{usedirs} || $page eq 'index') { return $masterpage . "." . $lang . "." . $ext; @@ -80,7 +80,7 @@ sub filter (@) { #{{{ # decide if this is a PO file that should be converted into a translated document, # and perform various sanity checks - if (! IkiWiki::PageSpec::match_istranslation($page, $page)) { + if (! pagespec_match($page, "istranslation()")) { return $content; } |