]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po plugin: use pagespec_match() instead of direct match_istranslation calls
authorintrigeri <intrigeri@boum.org>
Wed, 8 Oct 2008 18:31:46 +0000 (20:31 +0200)
committerintrigeri <intrigeri@boum.org>
Sat, 18 Oct 2008 13:49:08 +0000 (15:49 +0200)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 3546bef88a066bb747a3ea175e25a80718db515d..933f4d26efc51897d763a843893ea2bdde50da52 100644 (file)
@@ -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;
        }