From 352c62a8de8b2e7b532c487e74283ed36558abd3 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 2 Aug 2010 13:10:28 +0200 Subject: [PATCH] po: ignore non-existent translations in otherlanguages* --- IkiWiki/Plugin/po.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 610ae664b..dd89a96d1 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -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; } -- 2.26.2