A free open source IT asset/license management system
Use translation strings for importer exceptions
Marcus Mooree69fcf10b71f
diff --git a/app/Http/Controllers/Api/ImportController.php b/app/Http/Controllers/Api/ImportController.phpindex 9820b9ca0b..2426a49bed 100644--- a/app/Http/Controllers/Api/ImportController.php+++ b/app/Http/Controllers/Api/ImportController.php@@ -73,7 +73,7 @@ class ImportController extends ControllerHelper::formatStandardApiResponse('error',null,- 'One or more attributes in the header row contain malformed UTF-8 characters'+ trans('admin/hardware/message.import.header_row_has_malformed_characters')),422);@@ -106,7 +106,7 @@ class ImportController extends ControllerHelper::formatStandardApiResponse('error',null,- 'One or more attributes in row 2 contain malformed UTF-8 characters'+ trans('admin/hardware/message.import.content_row_has_malformed_characters')),422);diff --git a/resources/lang/en/admin/hardware/message.php b/resources/lang/en/admin/hardware/message.phpindex d2214ce00c..429342e0e1 100644--- a/resources/lang/en/admin/hardware/message.php+++ b/resources/lang/en/admin/hardware/message.php@@ -49,6 +49,8 @@ return ['success' => 'Your file has been imported','file_delete_success' => 'Your file has been been successfully deleted','file_delete_error' => 'The file was unable to be deleted',+ 'header_row_has_malformed_characters' => 'One or more attributes in the header row contain malformed UTF-8 characters',+ 'content_row_has_malformed_characters' => 'One or more attributes in row 2 contain malformed UTF-8 characters',],