mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-16 11:17:24 +02:00
Translation support
This commit is contained in:
parent
07336bb34c
commit
7e357565b9
@ -725,10 +725,10 @@ class UserController extends Controller
|
|||||||
'name' => 'sometimes|max:255|string',
|
'name' => 'sometimes|max:255|string',
|
||||||
'image' => 'sometimes|image|mimes:jpeg,jpg,png,webp|max:2048', // Max file size: 2MB
|
'image' => 'sometimes|image|mimes:jpeg,jpg,png,webp|max:2048', // Max file size: 2MB
|
||||||
], [
|
], [
|
||||||
'littlelink_name.unique' => 'That handle has already been taken.',
|
'littlelink_name.unique' => __('messages.That handle has already been taken'),
|
||||||
'image.image' => 'The selected file must be an image.',
|
'image.image' => __('messages.The selected file must be an image'),
|
||||||
'image.mimes' => 'The image must be a: JPEG, JPG, PNG, webP.',
|
'image.mimes' => __('messages.The image must be') . ' JPEG, JPG, PNG, webP.',
|
||||||
'image.max' => 'The image size should not exceed 2MB.',
|
'image.max' => __('messages.The image size should not exceed 2MB'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
@ -778,10 +778,10 @@ class UserController extends Controller
|
|||||||
$request->validate([
|
$request->validate([
|
||||||
'image' => 'required|image|mimes:jpeg,jpg,png,webp,gif|max:2048', // Max file size: 2MB
|
'image' => 'required|image|mimes:jpeg,jpg,png,webp,gif|max:2048', // Max file size: 2MB
|
||||||
], [
|
], [
|
||||||
'image.required' => 'Please select an image file.',
|
'image.required' => __('messages.Please select an image'),
|
||||||
'image.image' => 'The selected file must be an image.',
|
'image.image' => __('messages.The selected file must be an image'),
|
||||||
'image.mimes' => 'The image must be a: JPEG, JPG, PNG, webP, GIF.',
|
'image.mimes' => __('messages.The image must be') . ' JPEG, JPG, PNG, webP, GIF.',
|
||||||
'image.max' => 'The image size should not exceed 2MB.',
|
'image.max' => __('messages.The image size should not exceed 2MB'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$customBackground = $request->file('image');
|
$customBackground = $request->file('image');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user