diff options
author | intrigeri <intrigeri@boum.org> | 2010-08-02 13:10:28 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-08-02 13:10:28 +0200 |
commit | 352c62a8de8b2e7b532c487e74283ed36558abd3 (patch) | |
tree | d9c4faf8c24ff0f87bfe162d7cd2202dff04271f /IkiWiki | |
parent | d8a99e97ad6b02b5a5c7666dc2e98f1d6bc50550 (diff) |
po: ignore non-existent translations in otherlanguages*
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |