validation.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Validation Language Lines
  5. |--------------------------------------------------------------------------
  6. |
  7. | The following language lines contain the default error messages used by
  8. | the validator class. Some of these rules have multiple versions such
  9. | as the size rules. Feel free to tweak each of these messages here.
  10. |
  11. */
  12. return [
  13. 'accepted' => ':attribute debe ser aceptado.',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => ':attribute non é unha URL válida.',
  16. 'after' => ':attribute debe ser unha data posterior a :date.',
  17. 'after_or_equal' => ':attribute debe ser unha data posterior ou igual a :date.',
  18. 'alpha' => ':attribute só debe conter letras.',
  19. 'alpha_dash' => ':attribute só debe conter letras, números, guións e guións baixos.',
  20. 'alpha_num' => ':attribute só debe conter letras e números.',
  21. 'array' => ':attribute debe ser un conxunto.',
  22. 'attached' => 'Este :attribute xa está conectado.',
  23. 'before' => ':attribute debe ser unha data previa a :date.',
  24. 'before_or_equal' => ':attribute debe ser unha data previa ou igual a :date.',
  25. 'between' => [
  26. 'array' => ':attribute debe conter entre :min e :max elementos.',
  27. 'file' => ':attribute debe ter entre :min e :max quilobites.',
  28. 'numeric' => ':attribute debe estar entre :min e :max.',
  29. 'string' => ':attribute debe ter entre :min e :max caracteres.',
  30. ],
  31. 'boolean' => 'O campo :attribute debe ser verdadeiro ou falso.',
  32. 'confirmed' => 'A confirmación de :attribute non coincide.',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => ':attribute non é unha data válida.',
  35. 'date_equals' => ':attribute debe ser unha data igual a :date.',
  36. 'date_format' => ':attribute non coincide co formato :format.',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => ':attribute e :other deben ser diferentes.',
  40. 'digits' => ':attribute debe ter :digits díxitos.',
  41. 'digits_between' => ':attribute debe ter entre :min e :max díxitos.',
  42. 'dimensions' => 'As dimensións da imaxe :attribute no son válidas.',
  43. 'distinct' => 'O campo :attribute contén un valor duplicado.',
  44. 'email' => ':attribute debe ser unha dirección de correo electrónico válida.',
  45. 'ends_with' => ':attribute debe finalizar cun dos seguintes valores: :values',
  46. 'exists' => ':attribute seleccionado non é válido.',
  47. 'file' => ':attribute debe ser un arquivo.',
  48. 'filled' => 'O campo :attribute debe ter un valor.',
  49. 'gt' => [
  50. 'array' => ':attribute debe ter máis de :value elementos.',
  51. 'file' => ':attribute debe ter máis de :value quilobytes.',
  52. 'numeric' => ':attribute debe ser maior que :value.',
  53. 'string' => ':attribute debe ter máis de :value caracteres.',
  54. ],
  55. 'gte' => [
  56. 'array' => ':attribute debe ter polo menos :value elementos.',
  57. 'file' => ':attribute debe ter polo menos :value quilobytes.',
  58. 'numeric' => ':attribute debe ser polo menos :value.',
  59. 'string' => ':attribute debe ter polo menos :value caracteres.',
  60. ],
  61. 'image' => ':attribute debe ser unha imaxe.',
  62. 'in' => ':attribute seleccionado non é válido.',
  63. 'in_array' => 'O campo :attribute non existe en :other.',
  64. 'integer' => ':attribute debe ser un número enteiro.',
  65. 'ip' => ':attribute debe ser unha dirección IP válida.',
  66. 'ipv4' => ':attribute debe ser unha dirección IPv4 válida.',
  67. 'ipv6' => ':attribute debe ser unha dirección IPv6 válida.',
  68. 'json' => ':attribute debe ser unha cadea JSON válida.',
  69. 'lt' => [
  70. 'array' => ':attribute debe ter menos de :value elementos.',
  71. 'file' => ':attribute debe ter menos de :value quilobytes.',
  72. 'numeric' => ':attribute debe ser menor que :value.',
  73. 'string' => ':attribute debe ter menos de :value caracteres.',
  74. ],
  75. 'lte' => [
  76. 'array' => ':attribute non debe ter máis de :value elementos.',
  77. 'file' => ':attribute debe ter como máximo :value quilobytes.',
  78. 'numeric' => ':attribute debe ser como máximo :value.',
  79. 'string' => ':attribute debe ter como máximo :value caracteres.',
  80. ],
  81. 'max' => [
  82. 'array' => ':attribute non debe ter máis de :max elementos.',
  83. 'file' => ':attribute non debe ser maior de :max quilobites.',
  84. 'numeric' => ':attribute non debe ser maior de :max.',
  85. 'string' => ':attribute non debe ser maior de :max caracteres.',
  86. ],
  87. 'mimes' => ':attribute debe ser un arquivo de tipo: :values.',
  88. 'mimetypes' => ':attribute debe ser un arquivo de tipo: :values.',
  89. 'min' => [
  90. 'array' => ':attribute debe ter polo menos :min elementos.',
  91. 'file' => ':attribute debe ser polo menos de :min quilobites.',
  92. 'numeric' => ':attribute debe ser polo menos :min.',
  93. 'string' => ':attribute debe ser polo menos de :min caracteres.',
  94. ],
  95. 'multiple_of' => 'O :attribute debe ser un múltiplo de :value',
  96. 'not_in' => ':attribute seleccionado non é válido.',
  97. 'not_regex' => 'O formato de :attribute non é válido.',
  98. 'numeric' => ':attribute debe ser un número.',
  99. 'password' => 'O contrasinal é incorrecto.',
  100. 'present' => 'O campo :attribute debe estar presente.',
  101. 'prohibited' => 'O :attribute campo está prohibida.',
  102. 'prohibited_if' => 'O :attribute campo está prohibida cando :other é :value.',
  103. 'prohibited_unless' => 'O :attribute campo está prohibido, a menos que :other é en :values.',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => 'O formato de :attribute non é válido.',
  106. 'relatable' => 'Este :attribute non pode ser asociado con este recurso.',
  107. 'required' => 'O campo :attribute é obrigatorio.',
  108. 'required_if' => 'O campo :attribute é obrigatorio cando :other é :value.',
  109. 'required_unless' => 'O campo :attribute é obrigatorio excepto que :other estea en :values.',
  110. 'required_with' => 'O campo :attribute é obrigatorio cando :values está presente.',
  111. 'required_with_all' => 'O campo :attribute é obrigatorio cando :values están presentes.',
  112. 'required_without' => 'O campo :attribute é obrigatorio cando :values non está presente.',
  113. 'required_without_all' => 'O campo :attribute é obrigatorio cando ningún de :values están presentes.',
  114. 'same' => ':attribute e :other deben coincidir.',
  115. 'size' => [
  116. 'array' => ':attribute debe conter :size elementos.',
  117. 'file' => ':attribute debe ter :size quilobites.',
  118. 'numeric' => ':attribute debe ser :size.',
  119. 'string' => ':attribute debe ter :size caracteres.',
  120. ],
  121. 'starts_with' => ':attribute debe comezar cun dos seguintes valores: :values',
  122. 'string' => ':attribute debe ser unha cadea de caracteres.',
  123. 'timezone' => ':attribute debe ser unha zona válida.',
  124. 'unique' => ':attribute xa foi empregado.',
  125. 'uploaded' => ':attribute fallou na subida.',
  126. 'url' => 'O formato de :attribute non é válido.',
  127. 'uuid' => ':attribute debe ser un UUID válido.',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];