Revision 342c0c28
Von Bernd Bleßmann vor fast 11 Jahren hinzugefügt
SL/Controller/CsvImport/BaseMulti.pm | ||
---|---|---|
163 | 163 |
$prof{ 'cvar_' . $_->name } = '' for @{ $self->all_cvar_configs }; |
164 | 164 |
|
165 | 165 |
$class =~ m/^SL::DB::(.+)/; |
166 |
push @profile, {'profile' => \%prof, 'class' => $class, 'row_ident' => $1};
|
|
166 |
push @profile, {'profile' => \%prof, 'class' => $class, 'row_ident' => $::locale->text($1)};
|
|
167 | 167 |
} |
168 | 168 |
|
169 | 169 |
\@profile; |
SL/Controller/CsvImport/Order.pm | ||
---|---|---|
46 | 46 |
|
47 | 47 |
my $profile = $self->SUPER::init_profile; |
48 | 48 |
|
49 |
# SUPER::init_profile sets row_ident to the class name |
|
49 |
# SUPER::init_profile sets row_ident to the translated class name
|
|
50 | 50 |
# overwrite it with the user specified settings |
51 | 51 |
foreach my $p (@{ $profile }) { |
52 |
if ($p->{row_ident} eq 'Order') {
|
|
52 |
if ($p->{row_ident} eq $::locale->text('Order')) {
|
|
53 | 53 |
$p->{row_ident} = $self->settings->{'order_column'}; |
54 | 54 |
} |
55 |
if ($p->{row_ident} eq 'OrderItem') {
|
|
55 |
if ($p->{row_ident} eq $::locale->text('OrderItem')) {
|
|
56 | 56 |
$p->{row_ident} = $self->settings->{'item_column'}; |
57 | 57 |
} |
58 | 58 |
} |
... | ... | |
79 | 79 |
$self->SUPER::setup_displayable_columns; |
80 | 80 |
|
81 | 81 |
$self->add_displayable_columns($self->settings->{'order_column'}, |
82 |
{ name => 'datatype', description => $::locale->text('Zeilenkennung') },
|
|
82 |
{ name => 'datatype', description => $self->settings->{'order_column'} },
|
|
83 | 83 |
{ name => 'closed', description => $::locale->text('Closed') }, |
84 | 84 |
{ name => 'curr', description => $::locale->text('Currency') }, |
85 | 85 |
{ name => 'cusordnumber', description => $::locale->text('Customer Order Number') }, |
... | ... | |
123 | 123 |
); |
124 | 124 |
|
125 | 125 |
$self->add_displayable_columns($self->settings->{'item_column'}, |
126 |
{ name => 'datatype', description => $::locale->text('Zeilenkennung') },
|
|
126 |
{ name => 'datatype', description => $self->settings->{'item_column'} },
|
|
127 | 127 |
{ name => 'cusordnumber', description => $::locale->text('Customer Order Number') }, |
128 | 128 |
{ name => 'description', description => $::locale->text('Description') }, |
129 | 129 |
{ name => 'discount', description => $::locale->text('Discount') }, |
SL/DB/CsvImportProfile.pm | ||
---|---|---|
55 | 55 |
apply_buchungsgruppe => 'all', |
56 | 56 |
); |
57 | 57 |
} elsif ($self->type eq 'orders') { |
58 |
$self->_set_defaults(order_column => 'Order',
|
|
59 |
item_column => 'OrderItem',
|
|
58 |
$self->_set_defaults(order_column => $::locale->text('Order'),
|
|
59 |
item_column => $::locale->text('OrderItem'),
|
|
60 | 60 |
max_amount_diff => 0.02, |
61 | 61 |
); |
62 | 62 |
} else { |
locale/de/all | ||
---|---|---|
1413 | 1413 |
'Options' => 'Optionen', |
1414 | 1414 |
'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: ', |
1415 | 1415 |
'Order' => 'Auftrag', |
1416 |
'OrderItem' => 'Position', |
|
1416 | 1417 |
'Order Date' => 'Auftragsdatum', |
1417 | 1418 |
'Order Date missing!' => 'Auftragsdatum fehlt!', |
1418 | 1419 |
'Order Number' => 'Auftragsnummer', |
locale/en/all | ||
---|---|---|
1318 | 1318 |
'Options' => '', |
1319 | 1319 |
'Or download the whole Installation Documentation as PDF (350kB) for off-line study (currently in German Language): ' => '', |
1320 | 1320 |
'Order' => '', |
1321 |
'OrderItem' => '', |
|
1321 | 1322 |
'Order Date' => '', |
1322 | 1323 |
'Order Date missing!' => '', |
1323 | 1324 |
'Order Number' => '', |
Auch abrufbar als: Unified diff
gewählte/voreingestellte Zeilenkennung in der Hilfe/Beispieldatei anzeigen ...
und voreingestellte Zeilenkennung übersetzen.