mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-20 07:47:41 -07:00
Use translation strings for importer exceptions
This commit is contained in:
parent
937e2813e9
commit
e69fcf10b7
|
@ -73,7 +73,7 @@ class ImportController extends Controller
|
||||||
Helper::formatStandardApiResponse(
|
Helper::formatStandardApiResponse(
|
||||||
'error',
|
'error',
|
||||||
null,
|
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
|
422
|
||||||
);
|
);
|
||||||
|
@ -106,7 +106,7 @@ class ImportController extends Controller
|
||||||
Helper::formatStandardApiResponse(
|
Helper::formatStandardApiResponse(
|
||||||
'error',
|
'error',
|
||||||
null,
|
null,
|
||||||
'One or more attributes in row 2 contain malformed UTF-8 characters'
|
trans('admin/hardware/message.import.content_row_has_malformed_characters')
|
||||||
),
|
),
|
||||||
422
|
422
|
||||||
);
|
);
|
||||||
|
|
|
@ -49,6 +49,8 @@ return [
|
||||||
'success' => 'Your file has been imported',
|
'success' => 'Your file has been imported',
|
||||||
'file_delete_success' => 'Your file has been been successfully deleted',
|
'file_delete_success' => 'Your file has been been successfully deleted',
|
||||||
'file_delete_error' => 'The file was unable to be 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',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue