po(otherlanguagesloop): start factorizing

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-11-10 18:38:25 +01:00
parent 812f775e0a
commit 864bc2d9d0
1 changed files with 2 additions and 2 deletions

View File

@ -494,8 +494,8 @@ sub otherlanguagesloop ($) { #{{{
my @ret; my @ret;
if (istranslatable($page)) { if (istranslatable($page)) {
foreach my $lang (sort keys %{$translations{$page}}) { my %otherpages=%{otherlanguages($page)};
my $translation = $translations{$page}{$lang}; while (my ($lang, $translation) = each %otherpages) {
push @ret, { push @ret, {
url => urlto($translation, $page), url => urlto($translation, $page),
code => $lang, code => $lang,