validation.php 9.4 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' => 'O campo :attribute deverá ser aceite.',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => 'O campo :attribute não contém um URL válido.',
  16. 'after' => 'O campo :attribute deverá conter uma data posterior a :date.',
  17. 'after_or_equal' => 'O campo :attribute deverá conter uma data posterior ou igual a :date.',
  18. 'alpha' => 'O campo :attribute deverá conter apenas letras.',
  19. 'alpha_dash' => 'O campo :attribute deverá conter apenas letras, números e traços.',
  20. 'alpha_num' => 'O campo :attribute deverá conter apenas letras e números .',
  21. 'array' => 'O campo :attribute deverá conter uma coleção de elementos.',
  22. 'attached' => 'Este :attribute já está anexado.',
  23. 'before' => 'O campo :attribute deverá conter uma data anterior a :date.',
  24. 'before_or_equal' => 'O Campo :attribute deverá conter uma data anterior ou igual a :date.',
  25. 'between' => [
  26. 'array' => 'O campo :attribute deverá conter entre :min - :max elementos.',
  27. 'file' => 'O campo :attribute deverá ter um tamanho entre :min - :max kilobytes.',
  28. 'numeric' => 'O campo :attribute deverá ter um valor entre :min - :max.',
  29. 'string' => 'O campo :attribute deverá conter entre :min - :max caracteres.',
  30. ],
  31. 'boolean' => 'O campo :attribute deverá conter o valor verdadeiro ou falso.',
  32. 'confirmed' => 'A confirmação para o campo :attribute não coincide.',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => 'O campo :attribute não contém uma data válida.',
  35. 'date_equals' => 'O campo :attribute tem de ser uma data igual a :date.',
  36. 'date_format' => 'A data indicada para o campo :attribute não respeita o formato :format.',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => 'Os campos :attribute e :other deverão conter valores diferentes.',
  40. 'digits' => 'O campo :attribute deverá conter :digits caracteres.',
  41. 'digits_between' => 'O campo :attribute deverá conter entre :min a :max caracteres.',
  42. 'dimensions' => 'O campo :attribute deverá conter uma dimensão de imagem válida.',
  43. 'distinct' => 'O campo :attribute contém um valor duplicado.',
  44. 'email' => 'O campo :attribute não contém um endereço de e-mail válido.',
  45. 'ends_with' => 'O campo :attribute deverá terminar com : :values.',
  46. 'exists' => 'O valor selecionado para o campo :attribute é inválido.',
  47. 'file' => 'O campo :attribute deverá conter um ficheiro.',
  48. 'filled' => 'É obrigatória a indicação de um valor para o campo :attribute.',
  49. 'gt' => [
  50. 'array' => 'O campo :attribute tem de ter mais de :value itens.',
  51. 'file' => 'O campo :attribute tem de ter mais de :value quilobytes.',
  52. 'numeric' => 'O campo :attribute tem de ser maior do que :value.',
  53. 'string' => 'O campo :attribute tem de ter mais de :value caracteres.',
  54. ],
  55. 'gte' => [
  56. 'array' => 'O campo :attribute tem de ter :value itens ou mais.',
  57. 'file' => 'O campo :attribute tem de ter :value quilobytes ou mais.',
  58. 'numeric' => 'O campo :attribute tem de ser maior ou igual a :value.',
  59. 'string' => 'O campo :attribute tem de ter :value caracteres ou mais.',
  60. ],
  61. 'image' => 'O campo :attribute deverá conter uma imagem.',
  62. 'in' => 'O campo :attribute não contém um valor válido.',
  63. 'in_array' => 'O campo :attribute não existe em :other.',
  64. 'integer' => 'O campo :attribute deverá conter um número inteiro.',
  65. 'ip' => 'O campo :attribute deverá conter um IP válido.',
  66. 'ipv4' => 'O campo :attribute deverá conter um IPv4 válido.',
  67. 'ipv6' => 'O campo :attribute deverá conter um IPv6 válido.',
  68. 'json' => 'O campo :attribute deverá conter um texto JSON válido.',
  69. 'lt' => [
  70. 'array' => 'O campo :attribute tem de ter menos de :value itens.',
  71. 'file' => 'O campo :attribute tem de ter menos de :value quilobytes.',
  72. 'numeric' => 'O campo :attribute tem de ser inferior a :value.',
  73. 'string' => 'O campo :attribute tem de ter menos de :value caracteres.',
  74. ],
  75. 'lte' => [
  76. 'array' => 'O campo :attribute não pode ter mais de :value itens.',
  77. 'file' => 'O campo :attribute tem de ter :value quilobytes ou menos.',
  78. 'numeric' => 'O campo :attribute tem de ser inferior ou igual a :value.',
  79. 'string' => 'O campo :attribute tem de ter :value caracteres ou menos.',
  80. ],
  81. 'max' => [
  82. 'array' => 'O campo :attribute não deverá conter mais de :max elementos.',
  83. 'file' => 'O campo :attribute não deverá ter um tamanho superior a :max kilobytes.',
  84. 'numeric' => 'O campo :attribute não deverá conter um valor superior a :max.',
  85. 'string' => 'O campo :attribute não deverá conter mais de :max caracteres.',
  86. ],
  87. 'mimes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.',
  88. 'mimetypes' => 'O campo :attribute deverá conter um ficheiro do tipo: :values.',
  89. 'min' => [
  90. 'array' => 'O campo :attribute deverá conter no mínimo :min elementos.',
  91. 'file' => 'O campo :attribute deverá ter no mínimo :min kilobytes.',
  92. 'numeric' => 'O campo :attribute deverá ter um valor superior ou igual a :min.',
  93. 'string' => 'O campo :attribute deverá conter no mínimo :min caracteres.',
  94. ],
  95. 'multiple_of' => 'O :attribute deve ser um múltiplo de :value',
  96. 'not_in' => 'O campo :attribute contém um valor inválido.',
  97. 'not_regex' => 'O formato de :attribute não é válido',
  98. 'numeric' => 'O campo :attribute deverá conter um valor numérico.',
  99. 'password' => 'A password está errada.',
  100. 'present' => 'O campo :attribute deverá estar presente.',
  101. 'prohibited' => 'O campo :attribute é proibido.',
  102. 'prohibited_if' => 'O campo :attribute é proibido quando :other é :value.',
  103. 'prohibited_unless' => 'O campo :attribute é proibido a menos que :other esteja em :values.',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => 'O formato do valor para o campo :attribute é inválido.',
  106. 'relatable' => 'Este :attribute pode não estar associado a este recurso.',
  107. 'required' => 'É obrigatória a indicação de um valor para o campo :attribute.',
  108. 'required_if' => 'É obrigatória a indicação de um valor para o campo :attribute quando o valor do campo :other é igual a :value.',
  109. 'required_unless' => 'É obrigatória a indicação de um valor para o campo :attribute a menos que :other esteja presente em :values.',
  110. 'required_with' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values está presente.',
  111. 'required_with_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando um dos :values está presente.',
  112. 'required_without' => 'É obrigatória a indicação de um valor para o campo :attribute quando :values não está presente.',
  113. 'required_without_all' => 'É obrigatória a indicação de um valor para o campo :attribute quando nenhum dos :values está presente.',
  114. 'same' => 'Os campos :attribute e :other deverão conter valores iguais.',
  115. 'size' => [
  116. 'array' => 'O campo :attribute deverá conter :size elementos.',
  117. 'file' => 'O campo :attribute deverá ter o tamanho de :size kilobytes.',
  118. 'numeric' => 'O campo :attribute deverá conter o valor :size.',
  119. 'string' => 'O campo :attribute deverá conter :size caracteres.',
  120. ],
  121. 'starts_with' => 'O campo :attribute tem de começar com um dos valores seguintes: :values',
  122. 'string' => 'O campo :attribute deverá conter texto.',
  123. 'timezone' => 'O campo :attribute deverá ter um fuso horário válido.',
  124. 'unique' => 'O valor indicado para o campo :attribute já se encontra registado.',
  125. 'uploaded' => 'O upload do ficheiro :attribute falhou.',
  126. 'url' => 'O formato do URL indicado para o campo :attribute é inválido.',
  127. 'uuid' => ':attribute tem de ser um UUID válido.',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];