diff options
author | intrigeri <intrigeri@boum.org> | 2008-12-31 15:45:05 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-12-31 15:45:05 +0100 |
commit | 0d874f0b69c25cb4c5faed59261446dad0b22d32 (patch) | |
tree | 1a82602b99ec32389a1427b756af95a67cdb602f /IkiWiki | |
parent | 805e16ec65c338323333244fb67c59e1d69ba96f (diff) |
po(nicepagetitle): append translation status to links to translated pages
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 4 |
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).")"; } #}}} # ,---- |