po(nicepagetitle): append translation status to links to translated pages

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-12-31 15:45:05 +01:00
parent 805e16ec65
commit 0d874f0b69
1 changed files with 3 additions and 1 deletions

View File

@ -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).")";
} #}}}
# ,----