From: Moritz Bunkus Date: Fri, 2 Oct 2009 10:09:29 +0000 (+0200) Subject: Auch die Einheiten übersetzen, die in den Arrays in $form->{TEMPLATE_ARRAYS} stehen. X-Git-Tag: release-2.6.1beta1~261 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d7558f2ba86a3d6391a82adef060a2b88146d592;p=kivitendo-erp.git Auch die Einheiten übersetzen, die in den Arrays in $form->{TEMPLATE_ARRAYS} stehen. Fix für Bug 1138. --- 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}; }