po plugin: use pagespec_match() instead of direct match_istranslation calls

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-10-08 20:31:46 +02:00
parent 258c49ae55
commit 1975d4d35f
1 changed files with 2 additions and 2 deletions

View 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;
}