po(percenttranslated): fix issue with leading /
authorintrigeri <intrigeri@boum.org>
Wed, 31 Dec 2008 15:31:18 +0000 (16:31 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 31 Dec 2008 15:31:18 +0000 (16:31 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 2927759754f0832fc324aafe9f7258ccb7619e5f..9aefe236f6a076fee3b58fdeb2dfbcce7f865623 100644 (file)
@@ -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)});