From 9c63f426d973a3c4fb12530de5a0e80eb085dc43 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 4 Jan 2023 14:09:14 -0800 Subject: [PATCH] Added missing translation string Signed-off-by: snipe --- app/Http/Requests/ItemImportRequest.php | 2 +- resources/lang/en/validation.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Requests/ItemImportRequest.php b/app/Http/Requests/ItemImportRequest.php index f42b45a62..d360beaf2 100644 --- a/app/Http/Requests/ItemImportRequest.php +++ b/app/Http/Requests/ItemImportRequest.php @@ -49,7 +49,7 @@ class ItemImportRequest extends FormRequest $errorMessage = null; if (is_null($fieldValue)) { - $errorMessage = trans('validation.import_field_empty'); + $errorMessage = trans('validation.import_field_empty', ['fieldname' => $field]); $this->errorCallback($import, $field, $errorMessage); return $this->errors; diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index 367df4db4..04f8d6530 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -43,6 +43,7 @@ return [ 'file' => 'The :attribute must be a file.', 'filled' => 'The :attribute field must have a value.', 'image' => 'The :attribute must be an image.', + 'import_field_empty' => 'The value for :fieldname cannot be null.', 'in' => 'The selected :attribute is invalid.', 'in_array' => 'The :attribute field does not exist in :other.', 'integer' => 'The :attribute must be an integer.',