summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-12-31 15:45:05 +0100
committerintrigeri <intrigeri@boum.org>2008-12-31 15:45:05 +0100
commit0d874f0b69c25cb4c5faed59261446dad0b22d32 (patch)
tree1a82602b99ec32389a1427b756af95a67cdb602f /IkiWiki/Plugin
parent805e16ec65c338323333244fb67c59e1d69ba96f (diff)
po(nicepagetitle): append translation status to links to translated pages
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 93274ba13..292775975 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -490,7 +490,9 @@ sub myurlto ($$;$) { #{{{
sub mynicepagetitle ($;$) { #{{{
my ($page, $unescaped) = (shift, shift);
- return $origsubs{'nicepagetitle'}->($page, $unescaped);
+ my $res = $origsubs{'nicepagetitle'}->($page, $unescaped);
+ return $res unless istranslation($page);
+ return $res." (".percenttranslated($page).")";
} #}}}
# ,----