validation.php 6.6 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' => 'O :attribute debe aceptarse.',
  14. 'active_url' => 'O :attribute non é un URL válido.',
  15. 'after' => 'A :attribute debe ser unha data posterior :date.',
  16. 'after_or_equal' => 'A :attribute debe ser unha data posterior ou igual a :date.',
  17. 'alpha' => 'O :attribute só pode conter letras.',
  18. 'alpha_dash' => 'O :attribute pode conter só letras, números e trazos.',
  19. 'alpha_num' => 'O :attribute pode conter só letras e números.',
  20. 'array' => 'A :attribute debe ser unha cadea.',
  21. 'before' => 'A :attribute debe ser unha data anterior a :date.',
  22. 'before_or_equal' => 'A :attribute debe ser unha data anterior ou igual a :date.',
  23. 'between' => [
  24. 'numeric' => ' :attribute debe estar entre :min e :max.',
  25. 'file' => 'O :attribute debe estar entre :min e :max kilobytes.',
  26. 'string' => 'O :attribute debe ter entre :min e :max caracteres.',
  27. 'array' => 'O :attribute debe ter entre :min e :max elementos.',
  28. ],
  29. 'boolean' => 'O campo :attribute debe ser verdadeiro ou falso.',
  30. 'confirmed' => 'O :attribute de confirmación non concorda.',
  31. 'date' => 'A :attribute non é unha data válida.',
  32. 'date_format' => 'O :attribute non segue o formato :format.',
  33. 'different' => ' :attribute e :other deben ser diferentes.',
  34. 'digits' => ' :attribute deben ser :digits díxitos.',
  35. 'digits_between' => ' :attribute debe ter entre :min e :max díxitos.',
  36. 'dimensions' => ' :attribute ten unhas dimensións de imaxe non válidas.',
  37. 'distinct' => 'O campo :attribute ten un valor duplo.',
  38. 'email' => ' :attribute debe ser un enderezo de correo válido.',
  39. 'exists' => 'O :attribute escollido non é válido.',
  40. 'file' => ' :attribute debe ser un ficheiro.',
  41. 'filled' => 'O campo :attribute debe ter un valor.',
  42. 'image' => ' :attribute ten que ser unha imaxe.',
  43. 'in' => ' :attribute escollido non é válido.',
  44. 'in_array' => 'O campo :attribute non existe en :other.',
  45. 'integer' => ' :attribute debe ser un enteiro.',
  46. 'ip' => ' :attribute ten que ser un enderezo IP válido.',
  47. 'ipv4' => ' :attribute ten que ser un enderezo IPv4 válido.',
  48. 'ipv6' => ' :attribute ten que ser un enderezo IPv6 válido.',
  49. 'json' => ' :attribute debe ser unha cadea JSON válida.',
  50. 'max' => [
  51. 'numeric' => ' :attribute non pode ser maior de :max.',
  52. 'file' => ' :attribute non pode ser maior de :max kilobytes.',
  53. 'string' => ' :attribute non pode ser maior de :max caracteres.',
  54. 'array' => 'O :attribute non pode ter máis de :max elementos.',
  55. ],
  56. 'mimes' => ' :attribute debe ser un ficheiro de tipo: :values.',
  57. 'mimetypes' => ' :attribute debe ser un ficheiro de tipo: :values.',
  58. 'min' => [
  59. 'numeric' => ' :attribute debe ser como mínimo :min.',
  60. 'file' => ' :attribute debe ser como mínimo :min kilobytes.',
  61. 'string' => ' :attribute debe ser como mínimo :min characters.',
  62. 'array' => ' :attribute debe ter ao menos :min elementos.',
  63. ],
  64. 'not_in' => 'O :attribute escollido non é válido.',
  65. 'not_regex' => 'O formato de :attribute non é válido',
  66. 'numeric' => ' :attribute debe ser un número.',
  67. 'present' => 'O campo :attribute debe estar presente.',
  68. 'regex' => 'O formato de :attribute non é válido.',
  69. 'required' => 'O campo :attribute é requerido.',
  70. 'required_if' => 'O campo :attribute é requerido cando :other é :value.',
  71. 'required_unless' => 'O campo :attribute é requerido a non ser que :other esté en :values.',
  72. 'required_with' => 'O campo :attribute é requerido cando :values está presente.',
  73. 'required_with_all' => 'O campo :attribute é requerido cando :values está presente.',
  74. 'required_without' => 'O campo :attribute é requerido cando :values non está presente.',
  75. 'required_without_all' => 'O campo :attribute é requerido cando non está presente :values.',
  76. 'same' => ' :attribute e :other deben coincidir.',
  77. 'size' => [
  78. 'numeric' => ' :attribute debe ser :size.',
  79. 'file' => ' :attribute debe ser :size kilobytes.',
  80. 'string' => ' :attribute debe ser :size caracteres.',
  81. 'array' => ' :attribute debe conter :size elementos.',
  82. ],
  83. 'string' => ' :attribute debe ser unha cadea.',
  84. 'timezone' => ' :attribute debe ser unha zona válida.',
  85. 'unique' => 'O nome :attribute xa está collido.',
  86. 'uploaded' => ' :attribute fallou ao subir.',
  87. 'url' => 'O formato de :attribute non é válido.',
  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. ];