summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-15 21:08:17 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-15 21:08:17 -0400
commit1be07eae46e4993ecfea3da750727e1ec2d4b07d (patch)
tree701ca0169c522e3e4a3e9f0fd0a22b896cd917d5
parent0e4f67842a449d4f25b79836078a352007ea27b9 (diff)
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.
-rw-r--r--IkiWiki/Plugin/po.pm2
1 files changed, 1 insertions, 1 deletions
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 = (