validation.php
8.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
return [
/*
|--------------------------------------------------------------------------
| 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' => 'El campo :attribute debe ser aceptado.',
'active_url' => 'El campo :attribute no es una URL válida.',
'after' => 'El campo :attribute debe ser una fecha posterior a :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'El campo :attribute sólo debe contener letras.',
'alpha_dash' => 'El campo :attribute sólo debe contener letras, números y barras.',
'alpha_num' => 'El campo :attribute sólo debe contener letras y números.',
'array' => 'El campo :attribute debe ser una lista.',
'before' => 'El campo :attribute debe ser una fecha anterior a :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'El campo :attribute debe ser un número entre :min y :max.',
'file' => 'El campo :attribute debe ser entre :min y :max kilobytes.',
'string' => 'El campo :attribute debe ser entre :min y :max caracteres.',
'array' => 'El campo :attribute debe contener entre :min y :max elementos.',
],
'boolean' => 'El campo :attribute debe ser booleano.',
'confirmed' => 'El campo :attribute de confirmación no coincide.',
'date' => 'El campo :attribute no es una fecha válida.',
'date_format' => 'La fecha :attribute debe coincidir con el formato :format.',
'different' => 'El campo :attribute y :other deben ser diferentes.',
'digits' => 'El número :attribute debe tener :digits dígitos.',
'digits_between' => 'El número :attribute debe tener entre :min y :max dígitos.',
'dimensions' => 'El :attribute contiene dimensiones de imagen invalidas.',
'distinct' => 'El campo :attribute contiene un valor duplicado.',
'email' => 'El campo :attribute debe contener un e-mail válido.',
'exists' => 'El campo :attribute seleccionado es inválido.',
'file' => 'El :attribute debe ser un archivo.',
'filled' => 'El campo :attribute es obligatorio.',
'image' => 'El campo :attribute debe contener una imagen.',
'in' => 'El :attribute seleccionado no es válido.',
'in_array' => 'El campo :attribute no existen en :other.',
'integer' => 'El campo :attribute debe ser un número entero.',
'ip' => 'El campo :attribute debe contener una dirección IP válida.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'El campo :attribute debe contener un JSON válido.',
'max' => [
'numeric' => 'El número :attribute no debe ser mayor que :max.',
'file' => 'El fichero :attribute no debe ser mayor que :max kilobytes.',
'string' => 'El texto :attribute debe tener menos de :max caracteres.',
'array' => 'La lista :attribute debe contener menos de :max elemnetos.',
],
'mimes' => 'El fichero :attribute debe tener el formato/s :values.',
'min' => [
'numeric' => 'El número :attribute debe ser mayor o igual a :min.',
'file' => 'El fichero :attribute debe ser mayor o igual a :min kilobytes.',
'string' => 'El texto :attribute debe tener, al menos, :min caracteres.',
'array' => 'La lista :attribute debe contener, al menos :min elemnetos.',
],
'not_in' => 'El :attribute seleccionado no es válido.',
'numeric' => 'El campo :attribute debe ser un número.',
'present' => 'El campo :attribute debe estar presente.',
'regex' => 'El formato de :attribute no es válido.',
'required' => 'El campo :attribute es obligatorio.',
'required_if' => 'El campo :attribute es obligatorio cuando :other tiene valor :value.',
'required_unless' => 'El campo :attribute es obligatorio, excepto cuando :other esta en :values.',
'required_with' => 'El campo :attribute es obligatorio cuando :values están presentes.',
'required_with_all' => 'El campo :attribute es obligatorio cuando :values están presentes.',
'required_without' => 'El campo :attribute es obligatorio cuando :values no están presentes.',
'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de :values están presentes.',
'same' => 'El campo :attribute y :other deben coincidir.',
'size' => [
'numeric' => 'El número :attribute debe tener :size caracteres.',
'file' => 'El fichero :attribute debe tener :size kilobytes.',
'string' => 'El texto :attribute debe tener :size caracteres.',
'array' => 'La lista :attribute debe contener :size elemnetos.',
],
'string' => 'El campo :attribute debe contener texto.',
'timezone' => 'El campo :attribute debe contener una zona horaria válida.',
'unique' => 'El campo :attribute ya está en uso.',
'url' => 'El enlace :attribute debe tener un formato válido.',
/*
|--------------------------------------------------------------------------
| 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' => [
'attribute-name' => [
'rule-name' => 'mensaje-personalizado',
],
],
/*
|--------------------------------------------------------------------------
| 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' => [
'backend' => [
'access' => [
'permissions' => [
'associated_roles' => 'Roles asociados',
'dependencies' => 'Dependencias',
'display_name' => 'Nombre a mostrar',
'group' => 'Grupo',
'group_sort' => 'Orden del Grupo',
'groups' => [
'name' => 'Nombre del Grupo',
],
'name' => 'Nombre',
'system' => 'Sistema?',
],
'roles' => [
'associated_permissions' => 'Permisos asociados',
'name' => 'Nombre',
'sort' => 'Orden',
],
'users' => [
'active' => 'Activo',
'associated_roles' => 'Roles asociados',
'confirmed' => 'Confirmado',
'email' => 'Dirección de Correo',
'name' => 'Nombre',
'other_permissions' => 'Otros Permisos',
'password' => 'Contraseña',
'password_confirmation' => 'Confirmación de la Contraseña',
'send_confirmation_email' => 'Enviar Correo de confirmación',
],
],
],
'frontend' => [
'email' => 'Dirección de Correo',
'name' => 'Nombre',
'password' => 'Contraseña',
'password_confirmation' => 'Confirmación de la Contraseña',
'phone' => 'Phone',
'message' => 'Message',
'old_password' => 'Antigua Contraseña',
'new_password' => 'Nueva Contraseña',
'new_password_confirmation' => 'Confirmación de la Nueva Contraseña',
],
],
];