From 97aeb1fcec98c35ae004dea66a4404e8796fd801 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 1 Nov 2022 19:31:23 -0700 Subject: [PATCH] Use the generic file uploads strings Signed-off-by: snipe --- .../Consumables/ConsumablesFilesController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Consumables/ConsumablesFilesController.php b/app/Http/Controllers/Consumables/ConsumablesFilesController.php index 4dbed60491..51c0d3bf8c 100644 --- a/app/Http/Controllers/Consumables/ConsumablesFilesController.php +++ b/app/Http/Controllers/Consumables/ConsumablesFilesController.php @@ -68,15 +68,15 @@ class ConsumablesFilesController extends Controller } - return redirect()->route('consumables.show', $consumable->id)->with('success', trans('admin/consumables/message.upload.success')); + return redirect()->route('consumables.show', $consumable->id)->with('success', trans('general.file_upload_success')); } - return redirect()->route('consumables.show', $consumable->id)->with('error', trans('admin/consumables/message.upload.nofiles')); + return redirect()->route('consumables.show', $consumable->id)->with('error', trans('general.no_files_uploaded')); } // Prepare the error message return redirect()->route('consumables.index') - ->with('error', trans('admin/consumables/message.does_not_exist')); + ->with('error', trans('general.file_does_not_exist')); } /** @@ -114,7 +114,7 @@ class ConsumablesFilesController extends Controller } // Redirect to the licence management page - return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist')); + return redirect()->route('consumables.index')->with('error', trans('general.file_does_not_exist')); } /** @@ -171,6 +171,6 @@ class ConsumablesFilesController extends Controller } } - return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist', ['id' => $fileId])); + return redirect()->route('consumables.index')->with('error', trans('general.file_does_not_exist', ['id' => $fileId])); } }