]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/po.pm
po: also filter sidebar translation pages
[ikiwiki.git] / IkiWiki / Plugin / po.pm
index 0b48726ea91b1c33d13e92d67706f793e8e0b02c..6bf09b6d660cd97f76c28266ad159c2ceb930b11 100644 (file)
@@ -245,7 +245,10 @@ sub filter (@) {
        my $content = $params{content};
 
        my @caller = caller(4);
        my $content = $params{content};
 
        my @caller = caller(4);
-        return $content unless $caller[3] ne "IkiWiki::render";
+        unless ($caller[3] eq "IkiWiki::render" ||
+                $caller[3] eq 'IkiWiki::Plugin::sidebar::sidebar_content') {
+               return $content;
+       }
 
        if (istranslation($page) && ! alreadyfiltered($page, $destpage)) {
                $content = po_to_markup($page, $content);
 
        if (istranslation($page) && ! alreadyfiltered($page, $destpage)) {
                $content = po_to_markup($page, $content);