]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
po: do not add translation status to parentlinks
authorintrigeri <intrigeri@boum.org>
Tue, 13 Jan 2009 12:00:07 +0000 (13:00 +0100)
committerintrigeri <intrigeri@boum.org>
Tue, 13 Jan 2009 12:03:30 +0000 (13:03 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index a307e5d6b4171308702b8030cc43b7865bcdd120..1575754834d646fc73f5c960b2eb6b08a6c9122d 100644 (file)
@@ -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).'&nbsp;%)';
 }