diff options
author | intrigeri <intrigeri@boum.org> | 2008-12-31 16:31:18 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-12-31 16:31:18 +0100 |
commit | 63c2bf57cb2927ff89b2ae0fe3cce01e672814e7 (patch) | |
tree | 4767501f01e88ed70220970f658fe8c48371de58 | |
parent | 0d874f0b69c25cb4c5faed59261446dad0b22d32 (diff) |
po(percenttranslated): fix issue with leading /
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki/Plugin/po.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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)}); |