validation.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. 'accepted' => 'Las :attribute deben ser aceptadas.',
  14. 'active_url' => 'La dirección :attribute no es una URL válida.',
  15. 'after' => ':attribute debe ser una fecha posterior a :date.',
  16. 'after_or_equal' => ':attribute debe ser una fecha posterior o igual a :date.',
  17. 'alpha' => ':attribute debe contener únicamente letras.',
  18. 'alpha_dash' => ':attribute solo debe contener letras, números y guiones.',
  19. 'alpha_num' => ':attribute solo debe contener letras y números.',
  20. 'array' => ':attribute debe ser una lista.',
  21. 'before' => ':attribute debe ser una fecha anterior a :date.',
  22. 'before_or_equal' => ':attribute debe ser una fecha anterior o igual a :date.',
  23. 'between' => [
  24. 'numeric' => ':attribute debe estar entre :min y :max.',
  25. 'file' => ':attribute debe contener entre :min y :max kilobytes.',
  26. 'string' => ':attribute debe contener :min y :max caracteres.',
  27. 'array' => ':attribute debe contener :min y :max elementos.',
  28. ],
  29. 'boolean' => 'El campo :attribute debe ser verdadero o falso.',
  30. 'confirmed' => 'La confirmación de :attribute no coincide.',
  31. 'date' => ':attribute no es un formato válido de fecha.cd ',
  32. 'date_format' => ':attribute no cumple con el formato :format.',
  33. 'different' => ':attribute y :other deben ser distintos.',
  34. 'digits' => ':attribute debe contener :digits digitos.',
  35. 'digits_between' => ':attribute debe contener entre :min y :max digitos.',
  36. 'dimensions' => ':attribute tiene unas dimensiones no válidas para la imagen.',
  37. 'distinct' => 'El campo :attribute tiene un valor duplicado.',
  38. 'email' => 'El campo :attribute debe ser un e-mail válido.',
  39. 'exists' => 'El :attribute seleccionado no es válido.',
  40. 'file' => 'El campo :attribute debe ser un archivo.',
  41. 'filled' => 'El campo :attribute debe tener un valor válido.',
  42. 'image' => 'El campo :attribute debe ser una imagen.',
  43. 'in' => 'El elemento seleccionado :attribute no es válido.',
  44. 'in_array' => 'El campo :attribute no existe en :other.',
  45. 'integer' => 'El campo :attribute debe ser un entero.',
  46. 'ip' => 'El campo :attribute debe ser una dirección IP válida.',
  47. 'ipv4' => 'El campo :attribute debe ser una dirección IPv4 válida.',
  48. 'ipv6' => 'El campo :attribute debe ser una dirección IPv6 válida.',
  49. 'json' => 'El campo :attribute debe ser un JSON válido.',
  50. 'max' => [
  51. 'numeric' => ':attribute no debe ser mayor que :max.',
  52. 'file' => ':attribute no debe tener más de :max kilobytes.',
  53. 'string' => ':attribute no debe contener más de :max characters.',
  54. 'array' => ':attribute no debe contene más de :max elementos.',
  55. ],
  56. 'mimes' => ':attribute debe ser un archivo de tipo: :values.',
  57. 'mimetypes' => ':attribute debe ser un archivo de tipo: :values.',
  58. 'min' => [
  59. 'numeric' => ':attribute debe ser :min como mínimo.',
  60. 'file' => ':attribute debe tener al menos :min kilobytes.',
  61. 'string' => ':attribute debe contener al menos :min caracteres.',
  62. 'array' => ':attribute debe contener al menos :min elementos.',
  63. ],
  64. 'not_in' => 'El elemento seleccionado :attribute no es valido.',
  65. 'not_regex' => 'El formato de :attribute no es valido.',
  66. 'numeric' => ':attribute debe ser un número.',
  67. 'present' => 'El campo :attribute debe estar presente.',
  68. 'regex' => 'El formato de :attribute no es valido.',
  69. 'required' => 'El campo :attribute es obligatorio.',
  70. 'required_if' => 'El campo :attribute es obligatorio cuando :other es :value.',
  71. 'required_unless' => 'El campo :attribute es obligatorio a menos que :other sea :values.',
  72. 'required_with' => 'El campo :attribute es obligatorio cuando :values está presente.',
  73. 'required_with_all' => 'El campo :attribute es obligatorio cuando :values está presente.',
  74. 'required_without' => 'El campo :attribute es obligatorio cuando :values no está presente.',
  75. 'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de :values está presente.',
  76. 'same' => ':attribute y :other deben coincidir.',
  77. 'size' => [
  78. 'numeric' => ':attribute debe ser :size.',
  79. 'file' => ':attribute debe contener :size kilobytes.',
  80. 'string' => ':attribute debe contener :size caracteres.',
  81. 'array' => ':attribute debe contener :size elementos.',
  82. ],
  83. 'string' => ':attribute debe ser una cadena de texto.',
  84. 'timezone' => ':attribute debe ser un uso horario valido.',
  85. 'unique' => ':attribute no está disponible.',
  86. 'uploaded' => ':attribute falló al subirse.',
  87. 'url' => 'El formato de :attribute no es valido.',
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Custom Validation Language Lines
  91. |--------------------------------------------------------------------------
  92. |
  93. | Here you may specify custom validation messages for attributes using the
  94. | convention "attribute.rule" to name the lines. This makes it quick to
  95. | specify a specific custom language line for a given attribute rule.
  96. |
  97. */
  98. 'custom' => [
  99. 'attribute-name' => [
  100. 'rule-name' => 'custom-message',
  101. ],
  102. ],
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Custom Validation Attributes
  106. |--------------------------------------------------------------------------
  107. |
  108. | The following language lines are used to swap attribute place-holders
  109. | with something more reader friendly such as E-Mail Address instead
  110. | of "email". This simply helps us make messages a little cleaner.
  111. |
  112. */
  113. 'attributes' => [],
  114. ];