From: Joey Hess Date: Sun, 16 Aug 2009 01:08:17 +0000 (-0400) Subject: replace N/A with 0 X-Git-Tag: 3.1415926~108 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/1be07eae46e4993ecfea3da750727e1ec2d4b07d replace N/A with 0 I think the N/A was not intended to be visible, but it can show up as the percent translated to a language. This happens if the page is located in an underlay, and not translated to the language in any other underlay. --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 1bf0b72e3..ce32aab05 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -891,7 +891,7 @@ sub percenttranslated ($) { my $page=shift; $page=~s/^\///; - return gettext("N/A") unless istranslation($page); + return gettext("0") unless istranslation($page); my $file=srcfile($pagesources{$page}); my $masterfile = srcfile($pagesources{masterpage($page)}); my %options = (