}
}
+sub match_currentlang ($$;@) {
+ return 1; # stub
+}
+
package IkiWiki::SortSpec;
# This is in the SortSpec namespace so that the $a and $b that sort() uses
}
}
+no warnings 'redefine'; # overriding stub version
sub match_currentlang ($$;@) {
my $page=shift;
shift;
return IkiWiki::FailReason->new("file language is $lang, whereas current language is $currentlang");
}
}
+use warnings 'redefine';
sub match_needstranslation ($$;@) {
my $page=shift;
information earlier than the delete hook.
* actiontabs: Improve tab padding.
* blueview: Fix display of links to translated pages in the page header.
+ * Make currentlang() usable when po is not enabled, so it can be used
+ in example blog's PageSpecs.
-- Joey Hess <joeyh@debian.org> Tue, 07 Sep 2010 12:08:05 -0400
* "`comment_pending(glob)`" - matches unmoderated, pending comments.
* "`postcomment(glob)`" - matches only when comments are being
posted to a page matching the specified glob
+* "`currentlang()`" - always matches, unless [[translation|po]] is
+ enabled
For example, to match all pages in a blog that link to the page about music
and were written in 2005: