X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e16e1f36dec1679b1defb5efc5acd7290cc9de85..a52aa2f26cd22d26f59772695cf27c7b42157e00:/bin/mozilla/am.pl diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index d11219660..f28fa5221 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -849,7 +849,7 @@ sub list_language { $::lxdebug->enter_sub; $::auth->assert('config'); - AM->language(\%myconfig, \%$form); + AM->language(\%::myconfig, $::form); $::form->{callback} = "am.pl?action=list_language"; $::form->{title} = $::locale->text('Languages'); @@ -862,96 +862,21 @@ sub list_language { } sub language_header { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my $locale = $main::locale; - - $main::auth->assert('config'); - - $form->{title} = $locale->text("$form->{title} Language"); + $::lxdebug->enter_sub; + $::auth->assert('config'); # $locale->text('Add Language') # $locale->text('Edit Language') + $::form->{title} = $::locale->text("$::form->{title} Language"); - $form->{description} =~ s/\"/"/g; - $form->{template_code} =~ s/\"/"/g; - $form->{article_code} =~ s/\"/"/g; - - - $form->header; - - my $numberformat = - qq||; - foreach my $item (('1,000.00', '1000.00', '1.000,00', '1000,00')) { - $numberformat .= - ($item eq $form->{output_numberformat}) - ? ""; - } - - my $dateformat = - qq||; - foreach my $item (qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd)) { - $dateformat .= - ($item eq $form->{output_dateformat}) - ? ""; - } - - print qq| -
- -