po: ignore non-existent translations in otherlanguages*

master
intrigeri 2010-08-02 13:10:28 +02:00
parent d8a99e97ad
commit 352c62a8de
1 changed files with 4 additions and 1 deletions

View 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;
}