From d7558f2ba86a3d6391a82adef060a2b88146d592 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 2 Oct 2009 12:09:29 +0200 Subject: [PATCH] =?utf8?q?Auch=20die=20Einheiten=20=C3=BCbersetzen,=20die?= =?utf8?q?=20in=20den=20Arrays=20in=20$form->{TEMPLATE=5FARRAYS}=20stehen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1138. --- bin/mozilla/io.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 37e1b2668..f3e92dc94 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1449,10 +1449,9 @@ sub print_form { } if ($form->{language} ne "") { - map({ $form->{"unit"}->[$_] = - AM->translate_units($form, $form->{"language"}, - $form->{"unit"}->[$_], $form->{"qty"}->[$_]); } - (0..scalar(@{$form->{"unit"}}) - 1)); + my $template_arrays = $form->{TEMPLATE_ARRAYS} || $form; + map { $template_arrays->{unit}->[$_] = AM->translate_units($form, $form->{language}, $template_arrays->{unit}->[$_], $template_arrays->{qty}->[$_]); } (0..scalar(@{ $template_arrays->{unit} }) - 1); + $form->{language} = "_" . $form->{language}; } -- 2.20.1