Skip to content

Instantly share code, notes, and snippets.

@apat
Created February 14, 2015 19:48
Show Gist options
  • Save apat/079e44354086a866d0e8 to your computer and use it in GitHub Desktop.
Save apat/079e44354086a866d0e8 to your computer and use it in GitHub Desktop.
Laravel 5 lang en Español | Spanish
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Anterior',
'next' => 'Siguiente &raquo;',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reminder Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
"password" => "Las contraseñas deben contener al menos 6 caracteres y coincidir.",
"user" => "No podemos encontrar a un usuario con ese correo electrónico.",
"token" => "Este token de recuperación de contraseña es inválido.",
"sent" => "¡Los datos de recuperación de contraseña han sido enviados a su correo!",
"reset" => "¡Su contraseña ha sido restablecida!",
];
<?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" => ":attribute debe ser aceptado.",
"active_url" => ":attribute no es una URL válida.",
"after" => ":attribute debe ser una fecha posterior a :date.",
"alpha" => ":attribute solo debe contener letras.",
"alpha_dash" => ":attribute solo debe contener letras, números y guiones.",
"alpha_num" => ":attribute solo debe contener letras y números.",
"array" => ":attribute debe ser un conjunto.",
"before" => ":attribute debe ser una fecha anterior a :date.",
"between" => [
"numeric" => ":attribute tiene que estar entre :min - :max.",
"file" => ":attribute debe pesar entre :min - :max kilobytes.",
"string" => ":attribute tiene que tener entre :min - :max caracteres.",
"array" => ":attribute tiene que tener entre :min - :max ítems.",
],
"boolean" => "El campo :attribute debe tener un valor verdadero o falso.",
"confirmed" => "La confirmación de :attribute no coincide.",
"date" => ":attribute no es una fecha válida.",
"date_format" => ":attribute no corresponde al formato :format.",
"different" => ":attribute y :other deben ser diferentes.",
"digits" => ":attribute debe tener :digits dígitos.",
"digits_between" => ":attribute debe tener entre :min y :max dígitos.",
"email" => ":attribute no es un correo válido.",
"filled" => "El campo :attribute es obligatorio.",
"exists" => ":attribute es inválido.",
"image" => ":attribute debe ser una imagen.",
"in" => ":attribute es inválido.",
"integer" => ":attribute debe ser un número entero.",
"ip" => ":attribute debe ser una dirección IP válida.",
"max" => [
"numeric" => ":attribute no debe ser mayor a :max.",
"file" => ":attribute no debe ser mayor que :max kilobytes.",
"string" => ":attribute no debe ser mayor que :max caracteres.",
"array" => ":attribute no debe tener más de :max elementos.",
],
"mimes" => ":attribute debe ser un archivo con formato: :values.",
"min" => [
"numeric" => "El tamaño de :attribute debe ser de al menos :min.",
"file" => "El tamaño de :attribute debe ser de al menos :min kilobytes.",
"string" => ":attribute debe contener al menos :min caracteres.",
"array" => ":attribute debe tener al menos :min elementos.",
],
"not_in" => ":attribute es inválido.",
"numeric" => ":attribute debe ser numérico.",
"regex" => "El formato de :attribute es inválido.",
"required" => "El campo :attribute es obligatorio.",
"required_if" => "El campo :attribute es obligatorio cuando :other es :value.",
"required_with" => "El campo :attribute es obligatorio cuando :values está presente.",
"required_with_all" => "El campo :attribute es obligatorio cuando :values está presente.",
"required_without" => "El campo :attribute es obligatorio cuando :values no está presente.",
"required_without_all" => "El campo :attribute es obligatorio cuando ninguno de :values estén presentes.",
"same" => ":attribute y :other deben coincidir.",
"size" => [
"numeric" => "El tamaño de :attribute debe ser :size.",
"file" => "El tamaño de :attribute debe ser :size kilobytes.",
"string" => ":attribute debe contener :size caracteres.",
"array" => ":attribute debe contener :size elementos.",
],
"unique" => ":attribute ya ha sido registrado.",
"url" => "El formato :attribute es inválido.",
"timezone" => "El :attribute debe ser una zona válida.",
/*
|--------------------------------------------------------------------------
| 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' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| 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' => [],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment