po: do not add translation status to parentlinks

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2009-01-13 13:00:07 +01:00
parent 82197bd0ea
commit 196f03a987
1 changed files with 3 additions and 0 deletions

View File

@ -593,6 +593,9 @@ sub mynicepagetitle ($;$) {
my $res = $origsubs{'nicepagetitle'}->($page, $unescaped); my $res = $origsubs{'nicepagetitle'}->($page, $unescaped);
return $res unless istranslation($page); return $res unless istranslation($page);
return $res unless $config{po_translation_status_in_links}; 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).'&nbsp;%)'; return $res.' ('.percenttranslated($page).'&nbsp;%)';
} }