po(nicepagetitle): append translation status to links to translated pages
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
805e16ec65
commit
0d874f0b69
|
@ -490,7 +490,9 @@ sub myurlto ($$;$) { #{{{
|
||||||
sub mynicepagetitle ($;$) { #{{{
|
sub mynicepagetitle ($;$) { #{{{
|
||||||
my ($page, $unescaped) = (shift, shift);
|
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).")";
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
# ,----
|
# ,----
|
||||||
|
|
Loading…
Reference in New Issue