projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
812f775
)
po(otherlanguagesloop): start factorizing
author
intrigeri
<intrigeri@boum.org>
Mon, 10 Nov 2008 17:38:25 +0000
(18:38 +0100)
committer
intrigeri
<intrigeri@boum.org>
Mon, 10 Nov 2008 17:38:25 +0000
(18:38 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 0666142cb49628d4294c2390aaecff17f52af12b..5383027b826ce396c8a58e1530598c821a325008 100644
(file)
--- a/
IkiWiki/Plugin/po.pm
+++ b/
IkiWiki/Plugin/po.pm
@@
-494,8
+494,8
@@
sub otherlanguagesloop ($) { #{{{
my @ret;
if (istranslatable($page)) {
- foreach my $lang (sort keys %{$translations{$page}}) {
- my $translation = $translations{$page}{$lang};
+ my %otherpages=%{otherlanguages($page)};
+ while (my ($lang, $translation) = each %otherpages) {
push @ret, {
url => urlto($translation, $page),
code => $lang,