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.tremily.us/?a=commitdiff_plain;h=63c2bf57cb2927ff89b2ae0fe3cce01e672814e7;p=ikiwiki.git 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)});