summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-08-02 13:10:28 +0200
committerintrigeri <intrigeri@boum.org>2010-08-02 13:10:28 +0200
commit352c62a8de8b2e7b532c487e74283ed36558abd3 (patch)
treed9c4faf8c24ff0f87bfe162d7cd2202dff04271f /IkiWiki
parentd8a99e97ad6b02b5a5c7666dc2e98f1d6bc50550 (diff)
po: ignore non-existent translations in otherlanguages*
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm5
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;
}