validation.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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' => 'Il campo :attribute deve essere accettato.',
  14. 'accepted_if' => 'Il campo :attribute deve essere accettato quando :other è :value.',
  15. 'active_url' => 'Il campo :attribute deve essere un URL valido.',
  16. 'after' => 'Il campo :attribute deve essere una data successiva a :date.',
  17. 'after_or_equal' => 'Il campo :attribute deve essere una data successiva o uguale a :date.',
  18. 'alpha' => 'Il campo :attribute deve contenere solo lettere.',
  19. 'alpha_dash' => 'Il campo :attribute può contenere solo lettere, numeri, trattini e trattini bassi.',
  20. 'alpha_num' => 'Il campo :attribute può contenere solo lettere e numeri.',
  21. 'array' => 'Il campo :attribute deve essere un array.',
  22. 'ascii' => 'Il campo :attribute deve contenere solo caratteri alfanumerici e simboli a byte singolo.',
  23. 'before' => 'Il campo :attribute deve essere una data precedente a :date.',
  24. 'before_or_equal' => 'Il campo :attribute deve essere una data precedente o uguale a :date.',
  25. 'between' => [
  26. 'array' => 'Il campo :attribute deve avere tra :min e :max elementi.',
  27. 'file' => 'Il campo :attribute deve essere tra :min e :max kilobyte.',
  28. 'numeric' => 'Il campo :attribute deve essere compreso tra :min e :max.',
  29. 'string' => 'Il campo :attribute deve essere compreso tra :min e :max caratteri.',
  30. ],
  31. 'boolean' => 'Il campo :attribute deve essere vero o falso.',
  32. 'can' => 'Il campo :attribute contiene un valore non autorizzato.',
  33. 'confirmed' => 'La conferma del campo :attribute non corrisponde.',
  34. 'current_password' => 'La password non è corretta.',
  35. 'date' => 'Il campo :attribute deve essere una data valida.',
  36. 'date_equals' => 'Il campo :attribute deve essere una data uguale a :date.',
  37. 'date_format' => 'Il campo :attribute deve corrispondere al formato :format.',
  38. 'decimal' => 'Il campo :attribute deve avere :decimal posizioni decimali.',
  39. 'declined' => 'Il campo :attribute deve essere rifiutato.',
  40. 'declined_if' => 'Il campo :attribute deve essere rifiutato quando :other è :value.',
  41. 'different' => 'Il campo :attribute e :other devono essere diversi.',
  42. 'digits' => 'Il campo :attribute deve essere composto da :digits cifre.',
  43. 'digits_between' => 'Il campo :attribute deve essere compreso tra :min e :max cifre.',
  44. 'dimensions' => 'Il campo :attribute ha dimensioni immagine non valide.',
  45. 'distinct' => 'Il campo :attribute ha un valore duplicato.',
  46. 'doesnt_end_with' => 'Il campo :attribute non deve terminare con uno dei seguenti valori: :values.',
  47. 'doesnt_start_with' => 'Il campo :attribute non deve iniziare con uno dei seguenti valori: :values.',
  48. 'email' => 'Il campo :attribute deve essere un indirizzo email valido.',
  49. 'ends_with' => 'Il campo :attribute deve terminare con uno dei seguenti valori: :values.',
  50. 'enum' => 'Il :attribute selezionato non è valido.',
  51. 'exists' => 'Il :attribute selezionato non è valido.',
  52. 'extensions' => 'Il campo :attribute deve avere una delle seguenti estensioni: :values.',
  53. 'file' => 'Il campo :attribute deve essere un file.',
  54. 'filled' => 'Il campo :attribute deve avere un valore.',
  55. 'gt' => [
  56. 'array' => 'Il campo :attribute deve avere più di :value elementi.',
  57. 'file' => 'Il campo :attribute deve essere maggiore di :value kilobyte.',
  58. 'numeric' => 'Il campo :attribute deve essere maggiore di :value.',
  59. 'string' => 'Il campo :attribute deve essere più lungo di :value caratteri.',
  60. ],
  61. 'gte' => [
  62. 'array' => 'Il campo :attribute deve avere :value elementi o più.',
  63. 'file' => 'Il campo :attribute deve essere maggiore o uguale a :value kilobyte.',
  64. 'numeric' => 'Il campo :attribute deve essere maggiore o uguale a :value.',
  65. 'string' => 'Il campo :attribute deve essere lungo almeno :value caratteri.',
  66. ],
  67. 'hex_color' => 'Il campo :attribute deve essere un colore esadecimale valido.',
  68. 'image' => 'Il campo :attribute deve essere un\'immagine.',
  69. 'in' => 'Il :attribute selezionato non è valido.',
  70. 'in_array' => 'Il campo :attribute deve esistere in :other.',
  71. 'integer' => 'Il campo :attribute deve essere un numero intero.',
  72. 'ip' => 'Il campo :attribute deve essere un indirizzo IP valido.',
  73. 'ipv4' => 'Il campo :attribute deve essere un indirizzo IPv4 valido.',
  74. 'ipv6' => 'Il campo :attribute deve essere un indirizzo IPv6 valido.',
  75. 'json' => 'Il campo :attribute deve essere una stringa JSON valida.',
  76. 'lowercase' => 'Il campo :attribute deve essere in minuscolo.',
  77. 'lt' => [
  78. 'array' => 'Il campo :attribute deve avere meno di :value elementi.',
  79. 'file' => 'Il campo :attribute deve essere inferiore a :value kilobyte.',
  80. 'numeric' => 'Il campo :attribute deve essere minore di :value.',
  81. 'string' => 'Il campo :attribute deve essere inferiore a :value caratteri.',
  82. ],
  83. 'lte' => [
  84. 'array' => 'Il campo :attribute non deve avere più di :value elementi.',
  85. 'file' => 'Il campo :attribute deve essere minore o uguale a :value kilobyte.',
  86. 'numeric' => 'Il campo :attribute deve essere minore o uguale a :value.',
  87. 'string' => 'Il campo :attribute deve essere minore o uguale a :value caratteri.',
  88. ],
  89. 'mac_address' => 'Il campo :attribute deve essere un indirizzo MAC valido.',
  90. 'max' => [
  91. 'array' => 'Il campo :attribute non deve avere più di :max elementi.',
  92. 'file' => 'Il campo :attribute non deve essere maggiore di :max kilobyte.',
  93. 'numeric' => 'Il campo :attribute non deve essere maggiore di :max.',
  94. 'string' => 'Il campo :attribute non deve essere più lungo di :max caratteri.',
  95. ],
  96. 'max_digits' => 'Il campo :attribute non deve avere più di :max cifre.',
  97. 'mimes' => 'Il campo :attribute deve essere un file di tipo: :values.',
  98. 'mimetypes' => 'Il campo :attribute deve essere un file di tipo: :values.',
  99. 'min' => [
  100. 'array' => 'Il campo :attribute deve avere almeno :min elementi.',
  101. 'file' => 'Il campo :attribute deve essere almeno di :min kilobyte.',
  102. 'numeric' => 'Il campo :attribute deve essere almeno :min.',
  103. 'string' => 'Il campo :attribute deve essere di almeno :min caratteri.',
  104. ],
  105. 'min_digits' => 'Il campo :attribute deve avere almeno :min cifre.',
  106. 'missing' => 'Il campo :attribute deve essere mancante.',
  107. 'missing_if' => 'Il campo :attribute deve essere mancante quando :other è :value.',
  108. 'missing_unless' => 'Il campo :attribute deve essere mancante a meno che :other sia :value.',
  109. 'missing_with' => 'Il campo :attribute deve essere mancante quando :values è presente.',
  110. 'missing_with_all' => 'Il campo :attribute deve essere mancante quando :values sono presenti.',
  111. 'multiple_of' => 'Il campo :attribute deve essere un multiplo di :value.',
  112. 'not_in' => 'Il campo :attribute selezionato non è valido.',
  113. 'not_regex' => 'Il formato del campo :attribute non è valido.',
  114. 'numeric' => 'Il campo :attribute deve essere un numero.',
  115. 'password' => [
  116. 'letters' => 'Il campo :attribute deve contenere almeno una lettera.',
  117. 'mixed' => 'Il campo :attribute deve contenere almeno una lettera maiuscola e una minuscola.',
  118. 'numbers' => 'Il campo :attribute deve contenere almeno un numero.',
  119. 'symbols' => 'Il campo :attribute deve contenere almeno un simbolo.',
  120. 'uncompromised' => 'Il :attribute fornito è apparso in una violazione dei dati. Si prega di scegliere un :attribute diverso.',
  121. ],
  122. 'present' => 'Il campo :attribute deve essere presente.',
  123. 'present_if' => 'Il campo :attribute deve essere presente quando :other è :value.',
  124. 'present_unless' => 'Il campo :attribute deve essere presente a meno che :other sia :value.',
  125. 'present_with' => 'Il campo :attribute deve essere presente quando :values è presente.',
  126. 'present_with_all' => 'Il campo :attribute deve essere presente quando :values sono presenti.',
  127. 'prohibited' => 'Il campo :attribute è vietato.',
  128. 'prohibited_if' => 'Il campo :attribute è vietato quando :other è :value.',
  129. 'prohibited_unless' => 'Il campo :attribute è vietato a meno che :other sia in :values.',
  130. 'prohibits' => 'Il campo :attribute vieta :other di essere presente.',
  131. 'regex' => 'Il formato del campo :attribute non è valido.',
  132. 'required' => 'Il campo :attribute è richiesto.',
  133. 'required_array_keys' => 'Il campo :attribute deve contenere voci per: :values.',
  134. 'required_if' => 'Il campo :attribute è richiesto quando :other è :value.',
  135. 'required_if_accepted' => 'Il campo :attribute è richiesto quando :other è accettato.',
  136. 'required_unless' => 'Il campo :attribute è richiesto a meno che :other non sia in :values.',
  137. 'required_with' => 'Il campo :attribute è richiesto quando :values è presente.',
  138. 'required_with_all' => 'Il campo :attribute è richiesto quando :values sono presenti.',
  139. 'required_without' => 'Il campo :attribute è richiesto quando :values non è presente.',
  140. 'required_without_all' => 'Il campo :attribute è richiesto quando nessuno dei :values è presente.',
  141. 'same' => 'Il campo :attribute deve corrispondere a :other.',
  142. 'size' => [
  143. 'array' => 'Il campo :attribute deve contenere :size elementi.',
  144. 'file' => 'Il campo :attribute deve essere di :size kilobyte.',
  145. 'numeric' => 'Il campo :attribute deve essere :size.',
  146. 'string' => 'Il campo :attribute deve essere di :size caratteri.',
  147. ],
  148. 'starts_with' => 'Il campo :attribute deve iniziare con uno dei seguenti: :values.',
  149. 'string' => 'Il campo :attribute deve essere una stringa.',
  150. 'timezone' => 'Il campo :attribute deve essere un fuso orario valido.',
  151. 'unique' => 'Il :attribute è già stato preso.',
  152. 'uploaded' => 'Il caricamento del :attribute non è riuscito.',
  153. 'uppercase' => 'Il campo :attribute deve essere in maiuscolo.',
  154. 'url' => 'Il campo :attribute deve essere un URL valido.',
  155. 'ulid' => 'Il campo :attribute deve essere un ULID valido.',
  156. 'uuid' => 'Il campo :attribute deve essere un UUID valido.',
  157. /*
  158. |--------------------------------------------------------------------------
  159. | Custom Validation Language Lines
  160. |--------------------------------------------------------------------------
  161. |
  162. | Here you may specify custom validation messages for attributes using the
  163. | convention "attribute.rule" to name the lines. This makes it quick to
  164. | specify a specific custom language line for a given attribute rule.
  165. |
  166. */
  167. 'custom' => [
  168. 'attribute-name' => [
  169. 'rule-name' => 'messaggio personalizzato',
  170. ],
  171. ],
  172. /*
  173. |--------------------------------------------------------------------------
  174. | Custom Validation Attributes
  175. |--------------------------------------------------------------------------
  176. |
  177. | The following language lines are used to swap our attribute placeholder
  178. | with something more reader friendly such as "E-Mail Address" instead
  179. | of "email". This simply helps us make our message more expressive.
  180. |
  181. */
  182. 'attributes' => [],
  183. ];