]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
po: ignore non-existent translations in otherlanguages*
authorintrigeri <intrigeri@boum.org>
Mon, 2 Aug 2010 11:10:28 +0000 (13:10 +0200)
committerintrigeri <intrigeri@boum.org>
Mon, 2 Aug 2010 11:10:28 +0000 (13:10 +0200)
IkiWiki/Plugin/po.pm

index 610ae664b5de41495179f9b8e6c8b6860cc7c886..dd89a96d1aa17c348148167ebfd6dc8a672c21a5 100644 (file)
@@ -850,7 +850,10 @@ sub otherlanguages_codes ($) {
        foreach my $lang
                ($config{po_master_language}{code}, @slavelanguages) {
                next if $lang eq $curlang;
-               push @ret, $lang;
+               if ($lang eq $config{po_master_language}{code} ||
+                   istranslatedto(masterpage($page), $lang)) {
+                       push @ret, $lang;
+               }
        }
        return \@ret;
 }