summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-10 18:38:25 +0100
committerintrigeri <intrigeri@boum.org>2008-11-10 18:38:25 +0100
commit864bc2d9d0507a3b3f67ab785e347e37a8eaf9fa (patch)
tree377439895fb9034fb7d3efab9a32d0a0cd06bc25 /IkiWiki
parent812f775e0a3cd953782edcbe8a0eb727752df03f (diff)
po(otherlanguagesloop): start factorizing
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 0666142cb..5383027b8 100644
--- 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,