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;
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,