Update validation.php

Fix & add Ru
This commit is contained in:
kostefun 2019-09-05 10:10:15 +07:00 committed by GitHub
parent 16d8a667b1
commit e1aa212db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 34 deletions

View File

@ -1,18 +1,13 @@
<?php <?php
/**
* Validation Lines
* The following language lines contain the default error messages used by
* the validator class. Some of these rules have multiple versions such
* as the size rules. Feel free to tweak each of these messages here.
*/
return [ return [
/* // Standard laravel validation lines
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':attribute должен быть принят.', 'accepted' => ':attribute должен быть принят.',
'active_url' => ':attribute не является корректным URL.', 'active_url' => ':attribute не является корректным URL.',
'after' => ':attribute дата должна быть позже :date.', 'after' => ':attribute дата должна быть позже :date.',
@ -38,6 +33,7 @@ return [
'filled' => ':attribute поле необходимо.', 'filled' => ':attribute поле необходимо.',
'exists' => 'выделенный :attribute некорректен.', 'exists' => 'выделенный :attribute некорректен.',
'image' => ':attribute должен быть изображением.', 'image' => ':attribute должен быть изображением.',
'image_extension' => ':attribute должен быть исправным и содержать расширение картинки',
'in' => 'выделенный :attribute некорректен.', 'in' => 'выделенный :attribute некорректен.',
'integer' => ':attribute должно быть целое число.', 'integer' => ':attribute должно быть целое число.',
'ip' => ':attribute должен быть корректным IP адресом.', 'ip' => ':attribute должен быть корректным IP адресом.',
@ -54,6 +50,7 @@ return [
'string' => ':attribute должен быть минимум :min символов.', 'string' => ':attribute должен быть минимум :min символов.',
'array' => ':attribute должен содержать хотя бы :min элементов.', 'array' => ':attribute должен содержать хотя бы :min элементов.',
], ],
'no_double_extension' => ':attribute должен иметь только одно расширение файла.',
'not_in' => 'Выбранный :attribute некорректен.', 'not_in' => 'Выбранный :attribute некорректен.',
'numeric' => ':attribute должен быть числом.', 'numeric' => ':attribute должен быть числом.',
'regex' => ':attribute неправильный формат.', 'regex' => ':attribute неправильный формат.',
@ -74,35 +71,16 @@ return [
'timezone' => ':attribute должен быть корректным часовым поясом.', 'timezone' => ':attribute должен быть корректным часовым поясом.',
'unique' => ':attribute уже есть.', 'unique' => ':attribute уже есть.',
'url' => ':attribute имеет неправильный формат.', 'url' => ':attribute имеет неправильный формат.',
'uploaded' => 'Не удалось загрузить файл. Сервер не может принимать файлы такого размера.',
/* //Custom validation lines
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention 'attribute.rule' to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [ 'custom' => [
'password-confirm' => [ 'password-confirm' => [
'required_with' => 'Требуется подтверждение пароля', 'required_with' => 'Требуется подтверждение пароля',
], ],
], ],
/* //Custom validation attributes
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of 'email'. This simply helps us make messages a little cleaner.
|
*/
'attributes' => [], 'attributes' => [],
]; ];