Revision 5701782c
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
bin/mozilla/common.pl | ||
---|---|---|
$dateformat = $myconfig{"dateformat"} unless ($dateformat);
|
||
|
||
foreach my $idx (@indices) {
|
||
if ($form->{TEMPLATE_ARRAYS} && (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY")) {
|
||
for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) {
|
||
$form->{TEMPLATE_ARRAYS}->{$idx}->[$i] =
|
||
$locale->reformat_date(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i],
|
||
$dateformat, $longformat);
|
||
}
|
||
}
|
||
|
||
next unless (defined($form->{$idx}));
|
||
|
||
if (!ref($form->{$idx})) {
|
||
... | ... | |
$dateformat, $longformat);
|
||
}
|
||
}
|
||
if (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY") {
|
||
for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) {
|
||
$form->{TEMPLATE_ARRAYS}->{$idx}->[$i] =
|
||
$locale->reformat_date(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i],
|
||
$dateformat, $longformat);
|
||
}
|
||
}
|
||
}
|
||
|
||
$lxdebug->leave_sub();
|
||
... | ... | |
if (!$numberformat || ($numberformat eq $myconfig{"numberformat"}));
|
||
|
||
foreach my $idx (@indices) {
|
||
if ($form->{TEMPLATE_ARRAYS} && (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY")) {
|
||
for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) {
|
||
$form->{TEMPLATE_ARRAYS}->{$idx}->[$i] = $form->parse_amount(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i]);
|
||
}
|
||
}
|
||
|
||
next unless (defined($form->{$idx}));
|
||
|
||
if (!ref($form->{$idx})) {
|
||
... | ... | |
$myconfig{"numberformat"} = $numberformat;
|
||
|
||
foreach my $idx (@indices) {
|
||
if ($form->{TEMPLATE_ARRAYS} && (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY")) {
|
||
for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) {
|
||
$form->{TEMPLATE_ARRAYS}->{$idx}->[$i] = $form->format_amount(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i], $places);
|
||
}
|
||
}
|
||
|
||
next unless (defined($form->{$idx}));
|
||
|
||
if (!ref($form->{$idx})) {
|
Auch abrufbar als: Unified diff
Das Umformatieren der Daten und Zahlen beim Ausdruck wegen der Umstellung auf TEMPLATE_ARRAYS gefixt.