projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82197bd
)
po: do not add translation status to parentlinks
author
intrigeri
<intrigeri@boum.org>
Tue, 13 Jan 2009 12:00:07 +0000
(13:00 +0100)
committer
intrigeri
<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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index a307e5d6b4171308702b8030cc43b7865bcdd120..1575754834d646fc73f5c960b2eb6b08a6c9122d 100644
(file)
--- 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).' %)';
}