projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a99e9
)
po: ignore non-existent translations in otherlanguages*
author
intrigeri
<intrigeri@boum.org>
Mon, 2 Aug 2010 11:10:28 +0000
(13:10 +0200)
committer
intrigeri
<intrigeri@boum.org>
Mon, 2 Aug 2010 11:10:28 +0000
(13:10 +0200)
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 610ae664b5de41495179f9b8e6c8b6860cc7c886..dd89a96d1aa17c348148167ebfd6dc8a672c21a5 100644
(file)
--- 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;
}