From: intrigeri Date: Tue, 13 Jan 2009 12:00:07 +0000 (+0100) Subject: po: do not add translation status to parentlinks X-Git-Tag: 3.15~261 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=196f03a98744db0db4f5218bf243d208f245f7a9;p=ikiwiki.git po: do not add translation status to parentlinks Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index a307e5d6b..157575483 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -593,6 +593,9 @@ sub mynicepagetitle ($;$) { my $res = $origsubs{'nicepagetitle'}->($page, $unescaped); return $res unless istranslation($page); return $res unless $config{po_translation_status_in_links}; + my @caller = caller(1); + return $res if (exists $caller[3] && defined $caller[3] + && $caller[3] eq "IkiWiki::Plugin::parentlinks::parentlinks"); return $res.' ('.percenttranslated($page).' %)'; }