Updated string

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-04 21:52:37 +01:00
parent ef56f599d2
commit d834ef5104
2 changed files with 4 additions and 2 deletions

View file

@ -7,6 +7,7 @@ use Illuminate\Validation\Rule;
class StoreAssetModelRequest extends ImageUploadRequest
{
/**
* Determine if the user is authorized to make this request.
*/
@ -19,6 +20,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
{
$this->category_type = Category::find($this->category_id)->category_type;
$this->merge([
'category_type' => $this->category_type,
]);
@ -39,7 +41,7 @@ class StoreAssetModelRequest extends ImageUploadRequest
public function messages(): array
{
$messages = ['category_type.in' => 'The category must be an asset category, dummy.'];
$messages = ['category_type.in' => trans('admin/models/message.invalid_category_type')];
return $messages;
}
}

View file

@ -7,7 +7,7 @@ return array(
'no_association' => 'WARNING! The asset model for this item is invalid or missing!',
'no_association_fix' => 'This will break things in weird and horrible ways. Edit this asset now to assign it a model.',
'assoc_users' => 'This model is currently associated with one or more assets and cannot be deleted. Please delete the assets, and then try deleting again. ',
'invalid_category_type' => 'The category must be an asset category.',
'create' => array(
'error' => 'Model was not created, please try again.',