/ lang / es / validation.php
validation.php
  1  <?php
  2  
  3  return [
  4  
  5      /*
  6      |--------------------------------------------------------------------------
  7      | Validation Language Lines
  8      |--------------------------------------------------------------------------
  9      |
 10      | The following language lines contain the default error messages used by
 11      | the validator class. Some of these rules have multiple versions such
 12      | as the size rules. Feel free to tweak each of these messages here.
 13      |
 14      */
 15  
 16      'accepted' => 'El campo :attribute debe ser aceptado.',
 17      'accepted_if' => 'El campo :attribute debe ser aceptado cuando :other es :value.',
 18      'active_url' => 'El campo :attribute no es una URL válida.',
 19      'after' => 'El campo :attribute debe ser una fecha posterior a :date.',
 20      'after_or_equal' => 'El campo :attribute debe ser una fecha posterior o igual a :date.',
 21      'alpha' => 'El campo :attribute solo puede contener letras.',
 22      'alpha_dash' => 'El campo :attribute solo puede contener letras, números, guiones y guiones bajos.',
 23      'alpha_num' => 'El campo :attribute solo puede contener letras y números.',
 24      'array' => 'El campo :attribute debe ser un array.',
 25      'ascii' => 'El campo :attribute debe contener solamente caracteres alfanuméricos de un byte y símbolos.',
 26      'before' => 'El campo :attribute debe ser una fecha anterior a :date.',
 27      'before_or_equal' => 'El campo :attribute debe ser una fecha anterior o igual a :date.',
 28      'between' => [
 29          'numeric' => 'El campo :attribute debe ser un valor entre :min y :max.',
 30          'file' => 'El archivo :attribute debe pesar entre :min y :max kilobytes.',
 31          'string' => 'El campo :attribute debe contener entre :min y :max caracteres.',
 32          'array' => 'El campo :attribute debe contener entre :min y :max elementos.',
 33      ],
 34      'boolean' => 'El campo :attribute debe ser verdadero o falso.',
 35      'confirmed' => 'El campo confirmación de :attribute no coincide.',
 36      'current_password' => 'La contraseña es incorrecta.',
 37      'date' => 'El campo :attribute no corresponde con una fecha válida.',
 38      'date_equals' => 'El campo :attribute debe ser una fecha igual a :date.',
 39      'date_format' => 'El campo :attribute no corresponde con el formato de fecha :format.',
 40      'decimal' => 'El campo :attribute debe tener :decimal lugares decimales.',
 41      'declined' => 'El campo :attribute debe ser rechazado.',
 42      'declined_if' => 'El campo :attribute debe ser rechazado cuando :other es :value.',
 43      'different' => 'Los campos :attribute y :other deben ser diferentes.',
 44      'digits' => 'El campo :attribute debe ser un número de :digits dígitos.',
 45      'digits_between' => 'El campo :attribute debe contener entre :min y :max dígitos.',
 46      'dimensions' => 'El campo :attribute tiene dimensiones de imagen inválidas.',
 47      'distinct' => 'El campo :attribute tiene un valor duplicado.',
 48      'doesnt_end_with' => 'El campo :attribute no puede terminar con ninguno de los siguientes: :values.',
 49      'doesnt_start_with' => 'El campo :attribute no puede empezar con ninguno de los siguientes: :values.',
 50      'email' => 'El campo :attribute debe ser una dirección de correo válida.',
 51      'ends_with' => 'El campo :attribute debe finalizar con alguno de los siguientes valores: :values',
 52      'enum' => 'El :attribute seleccionado es inválido.',
 53      'exists' => 'El campo :attribute seleccionado no existe.',
 54      'file' => 'El campo :attribute debe ser un archivo.',
 55      'filled' => 'El campo :attribute debe tener un valor.',
 56      'gt' => [
 57          'numeric' => 'El campo :attribute debe ser mayor a :value.',
 58          'file' => 'El archivo :attribute debe pesar más de :value kilobytes.',
 59          'string' => 'El campo :attribute debe contener más de :value caracteres.',
 60          'array' => 'El campo :attribute debe contener más de :value elementos.',
 61      ],
 62      'gte' => [
 63          'numeric' => 'El campo :attribute debe ser mayor o igual a :value.',
 64          'file' => 'El archivo :attribute debe pesar :value o más kilobytes.',
 65          'string' => 'El campo :attribute debe contener :value o más caracteres.',
 66          'array' => 'El campo :attribute debe contener :value o más elementos.',
 67      ],
 68      'image' => 'El campo :attribute debe ser una imagen.',
 69      'in' => 'El campo :attribute es inválido.',
 70      'in_array' => 'El campo :attribute no existe en :other.',
 71      'integer' => 'El campo :attribute debe ser un número entero.',
 72      'ip' => 'El campo :attribute debe ser una dirección IP válida.',
 73      'ipv4' => 'El campo :attribute debe ser una dirección IPv4 válida.',
 74      'ipv6' => 'El campo :attribute debe ser una dirección IPv6 válida.',
 75      'json' => 'El campo :attribute debe ser una cadena de texto JSON válida.',
 76      'lowercase' => 'El campo :attribute debe estar en minúsculas.',
 77      'lt' => [
 78          'numeric' => 'El campo :attribute debe ser menor a :value.',
 79          'file' => 'El archivo :attribute debe pesar menos de :value kilobytes.',
 80          'string' => 'El campo :attribute debe contener menos de :value caracteres.',
 81          'array' => 'El campo :attribute debe contener menos de :value elementos.',
 82      ],
 83      'lte' => [
 84          'numeric' => 'El campo :attribute debe ser menor o igual a :value.',
 85          'file' => 'El archivo :attribute debe pesar :value o menos kilobytes.',
 86          'string' => 'El campo :attribute debe contener :value o menos caracteres.',
 87          'array' => 'El campo :attribute debe contener :value o menos elementos.',
 88      ],
 89      'mac_address' => 'El campo :attribute debe ser una dirección MAC válida.',
 90      'max' => [
 91          'numeric' => 'El campo :attribute no debe ser mayor a :max.',
 92          'file' => 'El archivo :attribute no debe pesar más de :max kilobytes.',
 93          'string' => 'El campo :attribute no debe contener más de :max caracteres.',
 94          'array' => 'El campo :attribute no debe contener más de :max elementos.',
 95      ],
 96      'max_digits' => 'El campo :attribute no debe tener más de :max dígitos.',
 97      'mimes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
 98      'mimetypes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
 99      'min' => [
100          'numeric' => 'El campo :attribute debe ser al menos :min.',
101          'file' => 'El archivo :attribute debe pesar al menos :min kilobytes.',
102          'string' => 'El campo :attribute debe contener al menos :min caracteres.',
103          'array' => 'El campo :attribute debe contener al menos :min elementos.',
104      ],
105      'min_digits' => 'El campo :attribute debe tener al menos :min dígitos.',
106      'multiple_of' => 'El campo :attribute debe ser un múltiplo de :value.',
107      'not_in' => 'El campo :attribute seleccionado es inválido.',
108      'not_regex' => 'El formato del campo :attribute es inválido.',
109      'numeric' => 'El campo :attribute debe ser un número.',
110      'password' => [
111          'letters' => 'El campo :attribute debe contener al menos una letra.',
112          'mixed' => 'El campo :attribute debe contener al menos una letra mayúscula y una minúscula.',
113          'numbers' => 'El campo :attribute debe contener al menos un número.',
114          'symbols' => 'El campo :attribute debe contener al menos un símbolo.',
115          'uncompromised' => 'El :attribute proporcionado ha aparecido en una filtración de datos. Por favor, elige un :attribute diferente.',
116      ],
117      'present' => 'El campo :attribute debe estar presente.',
118      'prohibited' => 'El campo :attribute está prohibido.',
119      'prohibited_if' => 'El campo :attribute está prohibido cuando :other es :value.',
120      'prohibited_unless' => 'El campo :attribute está prohibido a menos que :other esté en :values.',
121      'prohibits' => 'El campo :attribute prohíbe que :other esté presente.',
122      'regex' => 'El formato del campo :attribute es inválido.',
123      'required' => 'El campo :attribute es obligatorio.',
124      'required_array_keys' => 'El campo :attribute debe contener entradas para: :values.',
125      'required_if' => 'El campo :attribute es obligatorio cuando el campo :other es :value.',
126      'required_if_accepted' => 'El campo :attribute es obligatorio cuando :other es aceptado.',
127      'required_unless' => 'El campo :attribute es requerido a menos que :other se encuentre en :values.',
128      'required_with' => 'El campo :attribute es obligatorio cuando :values está presente.',
129      'required_with_all' => 'El campo :attribute es obligatorio cuando :values están presentes.',
130      'required_without' => 'El campo :attribute es obligatorio cuando :values no está presente.',
131      'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de los campos :values están presentes.',
132      'same' => 'Los campos :attribute y :other deben coincidir.',
133      'size' => [
134          'numeric' => 'El campo :attribute debe ser :size.',
135          'file' => 'El archivo :attribute debe pesar :size kilobytes.',
136          'string' => 'El campo :attribute debe contener :size caracteres.',
137          'array' => 'El campo :attribute debe contener :size elementos.',
138      ],
139      'starts_with' => 'El campo :attribute debe comenzar con uno de los siguientes valores: :values',
140      'string' => 'El campo :attribute debe ser una cadena de caracteres.',
141      'timezone' => 'El campo :attribute debe ser una zona horaria válida.',
142      'unique' => 'El valor del campo :attribute ya está en uso.',
143      'uploaded' => 'El campo :attribute no se pudo subir.',
144      'uppercase' => 'The :attribute must be uppercase.',
145      'url' => 'El formato del campo :attribute es inválido.',
146      'ulid' => 'El campo :attribute debe ser un ULID válido.',
147      'uuid' => 'El campo :attribute debe ser un UUID válido.',
148  
149      /*
150      |--------------------------------------------------------------------------
151      | Custom Validation Language Lines
152      |--------------------------------------------------------------------------
153      |
154      | Here you may specify custom validation messages for attributes using the
155      | convention "attribute.rule" to name the lines. This makes it quick to
156      | specify a specific custom language line for a given attribute rule.
157      |
158      */
159  
160      'custom' => [
161          'attribute-name' => [
162              'rule-name' => 'custom-message',
163          ],
164      ],
165  
166      'inbox' => [
167          'filename' => [
168              'includes_valid_dossier_code' => 'El nombre del archivo debe incluir un código de dossier válido.',
169              'unique_in_dossier' => 'El nombre del archivo ya existe en el dossier.',
170              'not_gpg' => 'El fichero no esta cifrado con GPG (asc, gpg, pgp)',
171          ],
172          'user' => [
173              'not_in_project' => 'El usuario no está asignado al proyecto.',
174              'dossier_not_found' => 'El dossier no existe.',
175          ],
176      ],
177  
178      /*
179      |--------------------------------------------------------------------------
180      | Custom Validation Attributes
181      |--------------------------------------------------------------------------
182      |
183      | The following language lines are used to swap attribute place-holders
184      | with something more reader friendly such as E-Mail Address instead
185      | of "email". This simply helps us make messages a little cleaner.
186      |
187      */
188      'attributes' => [
189          'taxonomy.name' => 'nombre',
190          'taxonomy.type' => 'tipo',
191          'taxonomy.subtype' => 'subtipo',
192          'taxonomy.mode' => 'modo',
193          'category.name' => 'nombre',
194          'category.code' => 'código',
195          'toe.name' => 'nombre',
196          'toe.alias' => 'alias',
197          'toe.description' => 'descripción',
198          'toe.toe_type_id' => 'categoría de TOE',
199          'toe.status' => 'estado',
200          'toe.version' => 'versión',
201          'toe.company_id' => 'empresa',
202          'toe.country_id' => 'país',
203          'normGroup.name' => 'nombre',
204          'normGroup.description' => 'descripción',
205          'norm.name' => 'nombre',
206          'norm.description' => 'descripción',
207          'norm.version' => 'versión',
208          'workbook.name' => 'nombre',
209          'scopeIds' => 'alcance',
210          'user.user_type_id' => 'tipo',
211          'user.name' => 'nombre',
212          'user.lastname' => 'apellido',
213          'user.username' => 'nombre de usuario',
214          'user.alias' => 'pseudónimo',
215          'user.email' => 'correo electrónico',
216          'user.phone' => 'teléfono',
217          'user.address' => 'dirección',
218          'user.public_gpg_key' => 'clave GPG pública',
219          'user.internal_identification_number' => 'código interno',
220          'user.personal_identification_number' => 'número de identificación',
221          'user.password' => 'contraseña actual',
222          'relation.role_id' => 'rol',
223          'relation.role_ids' => 'roles',
224          'relation.entity_type' => 'tipo de entidad',
225          'relation.entity_type_id' => 'tipo de entidad',
226          'relation.entity_id' => 'entidad',
227          'data.norm_scope_id' => 'alcance',
228          'data.obtained_in' => 'fecha de obtención',
229          'task.title' => 'título',
230          'task.description' => 'descripción',
231          'relation.user_id' => 'usuario',
232          'comment.text' => 'comentario',
233          'requirement.title' => 'título',
234          'requirement.description' => 'descripción',
235          'evidence.type' => 'tipo',
236          'evidence.code' => 'código',
237          'filters.created_at_to' => 'creado hasta',
238          'filters.created_at_since' => 'creado desde',
239          'outPut.relation.inbox_file_id' => 'fichero',
240          'outPut.relation.task_id' => 'tarea',
241          'outPut.description' => 'descripción',
242          'outPut.type_id' => 'tipo',
243          'outPut.relation.send_to_entity_id' => 'entidad',
244          'output.communication_date' => 'fecha de comunicación',
245          'dossier.toe_id' => 'toe',
246          'dossier.type' => 'tipo',
247          'dossier.mode' => 'modo',
248          'dossier.subtype' => 'subtipo',
249          'dossier.laboratory_id' => 'laboratorio',
250          'dossier.norm_group_id' => 'grupo de norma',
251          'dossier.norm_id' => 'norma',
252          'dossier.taxonomy' => 'plantilla',
253          'dossier.type_id' => 'tipo',
254          'resolution.approved' => 'resultado',
255          'resolution.resolution_date' => 'fecha de resolución',
256          'resolution.resolved_doc_id' => 'documento de la resolución',
257          'resolution.infor_cert_id' => 'informe de certificación',
258          'userIds' => 'destinatarios',
259          'certificateInfo.issued_at' => 'fecha de emisión',
260          'certificateInfo.validation_period' => 'periodo de validez',
261          'certificateInfo.expired_at' => 'fecha de caducidad',
262          'certificateInfo.status' => 'estado',
263          'certificateInfo.version' => 'versión',
264          'certificateInfo.version_history' => 'historial de versiones',
265          'certificateInfo.version_changelog' => 'registro de cambios',
266          'data.class' => 'tipo',
267          'data.name' => 'nombre',
268          'data.meet_date' => 'fecha de la reunión',
269          'data.meet_type_id' => 'tipo de reunión',
270          'data.url' => 'url de la reunión',
271          'folder.name' => 'nombre',
272          'stages.name' => 'nombre',
273          'stage.stage_status_id' => 'estado',
274          'entity.entity_type_id' => 'tipo de entidad',
275          'entity.name' => 'nombre',
276          'contactInfo.country_id' => 'país',
277          'toe.commercial_name' => 'nombre comercial',
278          'toe.evaluation_target' => 'objeto de evaluación',
279          'toe.evaluation_scope' => 'alcance de evaluación',
280          'toe.sectorial_dimensions' => 'dimensiones sectoriales',
281          'toe.usage_dimension' => 'dimensiones de uso',
282          'toe.technological_dimensions' => 'dimensiones tecnológicas',
283          'toe.cyber_security_info_url' => 'enlace a la información de seguridad',
284          'toe.period_security_support' => 'período del soporte de seguridad',
285          'certificationField.name' => 'nombre',
286          'scope.name' => 'nombre',
287          'text' => 'notificación',
288          'vulnerability.vid' => 'identificador',
289          'vulnerability.artifact_name' => 'nombre del artefacto',
290          'vulnerability.artifact_version' => 'versión del artefacto',
291          'vulnerability.artifact_type' => 'tipo del artefacto',
292          'vulnerability.source' => 'fuente',
293          'vulnerability.state' => 'estado',
294          'vulnerability.description' => 'descripción',
295          'toesIds' => 'TOES',
296          'workbookData.name' => 'name',
297          'gpgKey' => 'clave GPG',
298          'folderId' => 'carpeta',
299          'template' => 'plantilla',
300          'templateFile' => 'plantilla',
301          'templateId' => 'plantilla',
302          'filterId' => 'filtro',
303          'file' => 'fichero',
304          'typeId' => 'tipo del documento',
305          'templateFile.document_type_id' => 'tipo de documento',
306          'templateFile.name' => 'nombre del fichero',
307          'protectionProfile.name' => 'nombre',
308          'protectionProfile.description' => 'descripción',
309          'custom.title_certifier' => 'título del certificador',
310          'note_text' => 'nota interna',
311          'contactInfo.phone' => 'teléfono',
312          'newResponse.type' => 'tipo',
313          'newResponse.description' => 'descripción',
314          'recommendation.recommendation_category_id' => 'categoría',
315          'recommendation.description' => 'descripción',
316          'emlTemplate.title' => 'título',
317          'emlTemplate.subject' => 'asunto',
318          'emlTemplate.body' => 'cuerpo',
319          'emlTemplate.language' => 'lenguaje',
320          'emlTemplate.isInternal' => 'EML interno',
321      ],
322  
323      'attributes-custom' => [
324          'validate_dossier_code_exists' => 'Sin expediente con la referencia'
325      ],
326  
327      'values' => [
328          'user' => [
329              'user_type_id' => [
330                  1 => 'interno',
331                  2 => 'externo',
332              ],
333          ],
334      ],
335  
336      'enums' => [
337          1 => 'Pendiente',
338          2 => 'En proceso',
339          3 => 'No pasa',
340          4 => 'Pasa',
341      ],
342  
343  ];