po(otherlanguagesloop): start factorizing
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
812f775e0a
commit
864bc2d9d0
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue