projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1740951
)
Auch die Einheiten übersetzen, die in den Arrays in $form->{TEMPLATE_ARRAYS} stehen.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 2 Oct 2009 10:09:29 +0000
(12:09 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 2 Oct 2009 10:09:29 +0000
(12:09 +0200)
Fix für Bug 1138.
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
37e1b26
..
f3e92dc
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-1449,10
+1449,9
@@
sub print_form {
}
if ($form->{language} ne "") {
}
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};
}
$form->{language} = "_" . $form->{language};
}