/resources/lang/es/validation.php

https://gitlab.com/jeruick/imosa · PHP · 111 lines · 73 code · 8 blank · 30 comment · 0 complexity · 2eca0badb0d5a06e55b66f459522bc4a MD5 · raw file

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | such as the size rules. Feel free to tweak each of these messages.
  11. |
  12. */
  13. "accepted" => ":attribute debe ser aceptado.",
  14. "active_url" => ":attribute no es una URL válida.",
  15. "after" => ":attribute debe ser una fecha posterior a :date.",
  16. "alpha" => ":attribute solo debe contener letras.",
  17. "alpha_dash" => ":attribute solo debe contener letras, números y guiones.",
  18. "alpha_num" => ":attribute solo debe contener letras y números.",
  19. "array" => ":attribute debe ser un conjunto.",
  20. "before" => ":attribute debe ser una fecha anterior a :date.",
  21. "between" => [
  22. "numeric" => ":attribute tiene que estar entre :min - :max.",
  23. "file" => ":attribute debe pesar entre :min - :max kilobytes.",
  24. "string" => ":attribute tiene que tener entre :min - :max caracteres.",
  25. "array" => ":attribute tiene que tener entre :min - :max ítems.",
  26. ],
  27. "boolean" => "El campo :attribute debe tener un valor verdadero o falso.",
  28. "confirmed" => "La confirmación de :attribute no coincide.",
  29. "date" => ":attribute no es una fecha válida.",
  30. "date_format" => ":attribute no corresponde al formato :format.",
  31. "different" => ":attribute y :other deben ser diferentes.",
  32. "digits" => ":attribute debe tener :digits dígitos.",
  33. "digits_between" => ":attribute debe tener entre :min y :max dígitos.",
  34. "email" => ":attribute no es un correo válido",
  35. "exists" => ":attribute es inválido.",
  36. "filled" => "El campo :attribute es obligatorio.",
  37. "image" => ":attribute debe ser una imagen.",
  38. "in" => ":attribute es inválido.",
  39. "integer" => ":attribute debe ser un número entero.",
  40. "ip" => ":attribute debe ser una dirección IP válida.",
  41. 'json' => 'El campo :attribute debe tener una string JSON válida.',
  42. "max" => [
  43. "numeric" => ":attribute no debe ser mayor a :max.",
  44. "file" => ":attribute no debe ser mayor que :max kilobytes.",
  45. "string" => ":attribute no debe ser mayor que :max caracteres.",
  46. "array" => ":attribute no debe tener más de :max elementos.",
  47. ],
  48. "mimes" => ":attribute debe ser un archivo con formato: :values.",
  49. "min" => [
  50. "numeric" => "El tamaño de :attribute debe ser de al menos :min.",
  51. "file" => "El tamaño de :attribute debe ser de al menos :min kilobytes.",
  52. "string" => ":attribute debe contener al menos :min caracteres.",
  53. "array" => ":attribute debe tener al menos :min elementos.",
  54. ],
  55. "not_in" => ":attribute es inválido.",
  56. "numeric" => ":attribute debe ser numérico.",
  57. "regex" => "El formato de :attribute es inválido.",
  58. "required" => "El campo :attribute es obligatorio.",
  59. "required_if" => "El campo :attribute es obligatorio cuando :other es :value.",
  60. "required_with" => "El campo :attribute es obligatorio cuando :values está presente.",
  61. "required_with_all" => "El campo :attribute es obligatorio cuando :values está presente.",
  62. "required_without" => "El campo :attribute es obligatorio cuando :values no está presente.",
  63. "required_without_all" => "El campo :attribute es obligatorio cuando ninguno de :values estén presentes.",
  64. "same" => ":attribute y :other deben coincidir.",
  65. "size" => [
  66. "numeric" => "El tamaño de :attribute debe ser :size.",
  67. "file" => "El tamaño de :attribute debe ser :size kilobytes.",
  68. "string" => ":attribute debe contener :size caracteres.",
  69. "array" => ":attribute debe contener :size elementos.",
  70. ],
  71. "string" => "The :attribute must be a string.",
  72. "timezone" => "El :attribute debe ser una zona válida.",
  73. "unique" => "El :attribute ya ha sido registrado.",
  74. "url" => "El formato :attribute es inválido.",
  75. /*
  76. |--------------------------------------------------------------------------
  77. | Custom Validation Language Lines
  78. |--------------------------------------------------------------------------
  79. |
  80. | Here you may specify custom validation messages for attributes using the
  81. | convention "attribute.rule" to name the lines. This makes it quick to
  82. | specify a specific custom language line for a given attribute rule.
  83. |
  84. */
  85. 'custom' => [
  86. 'attribute-name' => [
  87. 'rule-name' => 'custom-message',
  88. ],
  89. ],
  90. /*
  91. |--------------------------------------------------------------------------
  92. | Custom Validation Attributes
  93. |--------------------------------------------------------------------------
  94. |
  95. | The following language lines are used to swap attribute place-holders
  96. | with something more reader friendly such as E-Mail Address instead
  97. | of "email". This simply helps us make messages a little cleaner.
  98. |
  99. */
  100. 'attributes' => [
  101. 'code' => 'codigo',
  102. ],
  103. ];