From 63c2bf57cb2927ff89b2ae0fe3cce01e672814e7 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 31 Dec 2008 16:31:18 +0100 Subject: [PATCH] po(percenttranslated): fix issue with leading / Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 1 + 1 file changed, 1 insertion(+) 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)}); -- 2.26.2