From 63183d06c5d1631c93068ac4cd3b373b08714c31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 14 Dec 2015 12:23:41 +0100 Subject: [PATCH] Csv-Import-Controller: Fehlermeldung des Csv-Helper mit ausgeben. --- SL/Controller/CsvImport.pm | 2 +- locale/de/all | 2 +- locale/en/all | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Controller/CsvImport.pm b/SL/Controller/CsvImport.pm index b74b04be0..8e46dafbe 100644 --- a/SL/Controller/CsvImport.pm +++ b/SL/Controller/CsvImport.pm @@ -100,7 +100,7 @@ sub action_result { $self->profile($profile); if ($data->{errors} and my $first_error = $data->{errors}->[0]) { - flash('error', $::locale->text('There was an error parsing the csv file: #1 in line #2.', $first_error->[2], $first_error->[0])); + flash('error', $::locale->text('There was an error parsing the csv file: #1 in line #2: #3', $first_error->[2], $first_error->[0], $first_error->[1])); } if ($data->{progress}{finished} || $data->{errors}) { diff --git a/locale/de/all b/locale/de/all index 1cdc139f1..a9d9bec93 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2943,7 +2943,7 @@ $self->{texts} = { 'There is not enough left of \'#1\' in bin \'#2\' for the removal of #3.' => 'In Lagerplatz \'#2\' ist nicht genug von \'#1\' vorhanden, um #3 zu entnehmen.', 'There is one or more sections for which no part has been assigned yet; therefore creating the new record is not possible yet.' => 'Es gibt einen oder mehrere Abschnitte ohne Artikelzuweisung; daher kann der neue Beleg noch nicht erstellt werden.', 'There was an error executing the background job.' => 'Bei der Ausführung des Hintergrund-Jobs trat ein Fehler auf.', - 'There was an error parsing the csv file: #1 in line #2.' => 'Es gab einen Fehler beim Parsen der CSV Datei: "#1" in der Zeile "#2"', + 'There was an error parsing the csv file: #1 in line #2: #3' => 'Es gab einen Fehler beim Parsen der CSV Datei: "#1" in der Zeile "#2": "#3"', 'There you can let kivitendo create the basic tables for you, even in an already existing database.' => 'Dort können Sie kivitendo diese grundlegenden Tabellen erstellen lassen, selbst in einer bereits existierenden Datenbank.', 'Therefore several settings that had to be made for each user in the past have been consolidated into the client configuration.' => 'Dazu wurden gewisse Einstellungen, die vorher bei jedem Benutzer vorgenommen werden mussten, in die Konfiguration eines Mandanten verschoben.', 'Therefore the definition of "kg" with the base unit "g" and a factor of 1000 is valid while defining "g" with a base unit of "kg" and a factor of "0.001" is not.' => 'So ist die Definition von "kg" mit der Basiseinheit "g" und dem Faktor 1000 zulässig, die Definition von "g" mit der Basiseinheit "kg" und dem Faktor "0,001" hingegen nicht.', diff --git a/locale/en/all b/locale/en/all index 62a26965b..61dd9de07 100644 --- a/locale/en/all +++ b/locale/en/all @@ -2305,7 +2305,7 @@ $self->{texts} = { 'There is not enough available of \'#1\' at warehouse \'#2\', bin \'#3\', #4, for the transfer of #5.' => '', 'There is not enough left of \'#1\' in bin \'#2\' for the removal of #3.' => '', 'There was an error executing the background job.' => '', - 'There was an error parsing the csv file: #1 in line #2.' => '', + 'There was an error parsing the csv file: #1 in line #2: #3' => '', 'There you can let kivitendo create the basic tables for you, even in an already existing database.' => '', 'Therefore several settings that had to be made for each user in the past have been consolidated into the client configuration.' => '', 'Therefore the definition of "kg" with the base unit "g" and a factor of 1000 is valid while defining "g" with a base unit of "kg" and a factor of "0.001" is not.' => '', -- 2.20.1