Skip to content

Commit 2f9e097

Browse files
authored
Merge pull request #12059 from snipe/fixes/consumables_files_translations
Use the generic file uploads strings
2 parents e6d259b + 97aeb1f commit 2f9e097

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/Http/Controllers/Consumables/ConsumablesFilesController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ public function store(AssetFileRequest $request, $consumableId = null)
6868
}
6969

7070

71-
return redirect()->route('consumables.show', $consumable->id)->with('success', trans('admin/consumables/message.upload.success'));
71+
return redirect()->route('consumables.show', $consumable->id)->with('success', trans('general.file_upload_success'));
7272

7373
}
7474

75-
return redirect()->route('consumables.show', $consumable->id)->with('error', trans('admin/consumables/message.upload.nofiles'));
75+
return redirect()->route('consumables.show', $consumable->id)->with('error', trans('general.no_files_uploaded'));
7676
}
7777
// Prepare the error message
7878
return redirect()->route('consumables.index')
79-
->with('error', trans('admin/consumables/message.does_not_exist'));
79+
->with('error', trans('general.file_does_not_exist'));
8080
}
8181

8282
/**
@@ -114,7 +114,7 @@ public function destroy($consumableId = null, $fileId = null)
114114
}
115115

116116
// Redirect to the licence management page
117-
return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist'));
117+
return redirect()->route('consumables.index')->with('error', trans('general.file_does_not_exist'));
118118
}
119119

120120
/**
@@ -171,6 +171,6 @@ public function show($consumableId = null, $fileId = null, $download = true)
171171
}
172172
}
173173

174-
return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist', ['id' => $fileId]));
174+
return redirect()->route('consumables.index')->with('error', trans('general.file_does_not_exist', ['id' => $fileId]));
175175
}
176176
}

0 commit comments

Comments
 (0)