$prof{ 'cvar_' . $_->name } = '' for @{ $self->all_cvar_configs };
$class =~ m/^SL::DB::(.+)/;
- push @profile, {'profile' => \%prof, 'class' => $class, 'row_ident' => $1};
+ push @profile, {'profile' => \%prof, 'class' => $class, 'row_ident' => $::locale->text($1)};
}
\@profile;
my $profile = $self->SUPER::init_profile;
- # SUPER::init_profile sets row_ident to the class name
+ # SUPER::init_profile sets row_ident to the translated class name
# overwrite it with the user specified settings
foreach my $p (@{ $profile }) {
- if ($p->{row_ident} eq 'Order') {
+ if ($p->{row_ident} eq $::locale->text('Order')) {
$p->{row_ident} = $self->settings->{'order_column'};
}
- if ($p->{row_ident} eq 'OrderItem') {
+ if ($p->{row_ident} eq $::locale->text('OrderItem')) {
$p->{row_ident} = $self->settings->{'item_column'};
}
}
$self->SUPER::setup_displayable_columns;
$self->add_displayable_columns($self->settings->{'order_column'},
- { name => 'datatype', description => $::locale->text('Zeilenkennung') },
+ { name => 'datatype', description => $self->settings->{'order_column'} },
{ name => 'closed', description => $::locale->text('Closed') },
{ name => 'curr', description => $::locale->text('Currency') },
{ name => 'cusordnumber', description => $::locale->text('Customer Order Number') },
);
$self->add_displayable_columns($self->settings->{'item_column'},
- { name => 'datatype', description => $::locale->text('Zeilenkennung') },
+ { name => 'datatype', description => $self->settings->{'item_column'} },
{ name => 'cusordnumber', description => $::locale->text('Customer Order Number') },
{ name => 'description', description => $::locale->text('Description') },
{ name => 'discount', description => $::locale->text('Discount') },
apply_buchungsgruppe => 'all',
);
} elsif ($self->type eq 'orders') {
- $self->_set_defaults(order_column => 'Order',
- item_column => 'OrderItem',
+ $self->_set_defaults(order_column => $::locale->text('Order'),
+ item_column => $::locale->text('OrderItem'),
max_amount_diff => 0.02,
);
} else {
'Options' => 'Optionen',
'Or download the whole Installation Documentation as PDF (350kB) for off-line study (currently in German Language): ' => 'Oder laden Sie die komplette Installationsbeschreibung als PDF (350kB) herunter: ',
'Order' => 'Auftrag',
+ 'OrderItem' => 'Position',
'Order Date' => 'Auftragsdatum',
'Order Date missing!' => 'Auftragsdatum fehlt!',
'Order Number' => 'Auftragsnummer',