X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/479c7a1ea62d8fce3ef54f9deae89230d0b52a5d..59b07af4cf3bc6acabafba826f3261c201d5e1bd:/IkiWiki/Plugin/conditional.pm diff --git a/IkiWiki/Plugin/conditional.pm b/IkiWiki/Plugin/conditional.pm index 35418a3ba..ed533109a 100644 --- a/IkiWiki/Plugin/conditional.pm +++ b/IkiWiki/Plugin/conditional.pm @@ -17,7 +17,7 @@ sub preprocess_if (@) { #{{{ my %params=@_; if (! exists $params{test} || ! exists $params{then}) { - return "[[if requires \"test\" and \"then\" parameters]]"; + return "[[if ".gettext('"test" and "then" parameters are required')."]]"; } my $result=0; @@ -53,7 +53,8 @@ sub preprocess_if (@) { #{{{ else { $ret=""; } - return IkiWiki::preprocess($params{page}, $params{destpage}, $ret); + return IkiWiki::preprocess($params{page}, $params{destpage}, + IkiWiki::filter($params{page}, $ret)); } # }}} package IkiWiki::PageSpec;