@@ -68,15 +68,15 @@ public function store(AssetFileRequest $request, $consumableId = null)
68
68
}
69
69
70
70
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 ' ));
72
72
73
73
}
74
74
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 ' ));
76
76
}
77
77
// Prepare the error message
78
78
return redirect ()->route ('consumables.index ' )
79
- ->with ('error ' , trans ('admin/consumables/message.does_not_exist ' ));
79
+ ->with ('error ' , trans ('general.file_does_not_exist ' ));
80
80
}
81
81
82
82
/**
@@ -114,7 +114,7 @@ public function destroy($consumableId = null, $fileId = null)
114
114
}
115
115
116
116
// 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 ' ));
118
118
}
119
119
120
120
/**
@@ -171,6 +171,6 @@ public function show($consumableId = null, $fileId = null, $download = true)
171
171
}
172
172
}
173
173
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 ]));
175
175
}
176
176
}
0 commit comments