From: intrigeri Date: Wed, 31 Dec 2008 15:31:18 +0000 (+0100) Subject: po(percenttranslated): fix issue with leading / X-Git-Tag: 3.15~311 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/63c2bf57cb2927ff89b2ae0fe3cce01e672814e7?hp=0d874f0b69c25cb4c5faed59261446dad0b22d32 po(percenttranslated): fix issue with leading / Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 292775975..9aefe236f 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -732,6 +732,7 @@ sub urlto_with_orig_beautiful_urlpath($$) { #{{{ sub percenttranslated ($) { #{{{ my $page=shift; + $page=~s/^\///; return gettext("N/A") unless istranslation($page); my $file=srcfile($pagesources{$page}); my $masterfile = srcfile($pagesources{masterpage($page)});