]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/po.pm
bugs with po and git plugins
[git.ikiwiki.info.git] / IkiWiki / Plugin / po.pm
index ce32aab050df4d61b6a0147aa4aa1a44acc82c10..aa3d72b90ebaeaeb88a54e9f953f57cfb8e629c0 100644 (file)
@@ -891,7 +891,7 @@ sub percenttranslated ($) {
        my $page=shift;
 
        $page=~s/^\///;
-       return gettext("0") unless istranslation($page);
+       return gettext("N/A") unless istranslation($page);
        my $file=srcfile($pagesources{$page});
        my $masterfile = srcfile($pagesources{masterpage($page)});
        my %options = (
@@ -934,7 +934,7 @@ sub otherlanguagesloop ($) {
                                master => 1,
                        };
                }
-               else {
+               elsif (istranslation($otherpage)) {
                        push @ret, {
                                url => urlto_with_orig_beautiful_urlpath($otherpage, $page),
                                code => $lang,