validation.php 8.3 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 måste accepteras.',
  14. 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
  15. 'active_url' => ':Attribute är inte en giltig webbadress.',
  16. 'after' => ':Attribute måste vara ett datum efter :date.',
  17. 'after_or_equal' => ':Attribute måste vara ett datum senare eller samma dag som :date.',
  18. 'alpha' => ':Attribute får endast innehålla bokstäver.',
  19. 'alpha_dash' => ':Attribute får endast innehålla bokstäver, siffror och bindestreck.',
  20. 'alpha_num' => ':Attribute får endast innehålla bokstäver och siffror.',
  21. 'array' => ':Attribute måste vara en array.',
  22. 'attached' => 'Denna :attribute är redan bifogad.',
  23. 'before' => ':Attribute måste vara ett datum innan :date.',
  24. 'before_or_equal' => ':Attribute måste vara ett datum före eller samma dag som :date.',
  25. 'between' => [
  26. 'array' => ':Attribute måste innehålla mellan :min - :max objekt.',
  27. 'file' => ':Attribute måste vara mellan :min till :max kilobyte stor.',
  28. 'numeric' => ':Attribute måste vara en siffra mellan :min och :max.',
  29. 'string' => ':Attribute måste innehålla :min till :max tecken.',
  30. ],
  31. 'boolean' => ':Attribute måste vara sant eller falskt.',
  32. 'confirmed' => ':Attribute bekräftelsen matchar inte.',
  33. 'current_password' => 'The password is incorrect.',
  34. 'date' => ':Attribute är inte ett giltigt datum.',
  35. 'date_equals' => ':Attribute måste vara ett datum lika med :date.',
  36. 'date_format' => ':Attribute matchar inte formatet :format.',
  37. 'declined' => 'The :attribute must be declined.',
  38. 'declined_if' => 'The :attribute must be declined when :other is :value.',
  39. 'different' => ':Attribute och :other får inte vara lika.',
  40. 'digits' => ':Attribute måste vara :digits tecken.',
  41. 'digits_between' => ':Attribute måste vara mellan :min och :max tecken.',
  42. 'dimensions' => ':Attribute har felaktiga bilddimensioner.',
  43. 'distinct' => ':Attribute innehåller fler än en repetition av samma element.',
  44. 'email' => ':Attribute måste innehålla en korrekt e-postadress.',
  45. 'ends_with' => ':Attribute måste sluta med en av följande: :values.',
  46. 'exists' => ':Attribute är ogiltigt.',
  47. 'file' => ':Attribute måste vara en fil.',
  48. 'filled' => ':Attribute är obligatoriskt.',
  49. 'gt' => [
  50. 'array' => ':Attribute måste innehålla fler än :value objekt.',
  51. 'file' => ':Attribute måste vara större än :value kilobyte stor.',
  52. 'numeric' => ':Attribute måste vara större än :value.',
  53. 'string' => ':Attribute måste vara längre än :value tecken.',
  54. ],
  55. 'gte' => [
  56. 'array' => ':Attribute måste innehålla lika många eller fler än :value objekt.',
  57. 'file' => ':Attribute måste vara lika med eller större än :value kilobyte stor.',
  58. 'numeric' => ':Attribute måste vara lika med eller större än :value.',
  59. 'string' => ':Attribute måste vara lika med eller längre än :value tecken.',
  60. ],
  61. 'image' => ':Attribute måste vara en bild.',
  62. 'in' => ':Attribute är ogiltigt.',
  63. 'in_array' => ':Attribute finns inte i :other.',
  64. 'integer' => ':Attribute måste vara en siffra.',
  65. 'ip' => ':Attribute måste vara en giltig IP-adress.',
  66. 'ipv4' => ':Attribute måste vara en giltig IPv4-adress.',
  67. 'ipv6' => ':Attribute måste vara en giltig IPv6-adress.',
  68. 'json' => ':Attribute måste vara en giltig JSON-sträng.',
  69. 'lt' => [
  70. 'array' => ':Attribute måste innehålla färre än :value objekt.',
  71. 'file' => ':Attribute måste vara mindre än :value kilobyte stor.',
  72. 'numeric' => ':Attribute måste vara mindre än :value.',
  73. 'string' => ':Attribute måste vara kortare än :value tecken.',
  74. ],
  75. 'lte' => [
  76. 'array' => ':Attribute måste innehålla lika många eller färre än :value objekt.',
  77. 'file' => ':Attribute måste vara lika med eller mindre än :value kilobyte stor.',
  78. 'numeric' => ':Attribute måste vara lika med eller mindre än :value.',
  79. 'string' => ':Attribute måste vara lika med eller kortare än :value tecken.',
  80. ],
  81. 'max' => [
  82. 'array' => ':Attribute får inte innehålla mer än :max objekt.',
  83. 'file' => ':Attribute får max vara :max kilobyte stor.',
  84. 'numeric' => ':Attribute får inte vara större än :max.',
  85. 'string' => ':Attribute får max innehålla :max tecken.',
  86. ],
  87. 'mimes' => ':Attribute måste vara en fil av typen: :values.',
  88. 'mimetypes' => ':Attribute måste vara en fil av typen: :values.',
  89. 'min' => [
  90. 'array' => ':Attribute måste innehålla minst :min objekt.',
  91. 'file' => ':Attribute måste vara minst :min kilobyte stor.',
  92. 'numeric' => ':Attribute måste vara större än :min.',
  93. 'string' => ':Attribute måste innehålla minst :min tecken.',
  94. ],
  95. 'multiple_of' => ':attribute måste vara en multipel av :value',
  96. 'not_in' => ':Attribute är ogiltigt.',
  97. 'not_regex' => 'Formatet för :attribute är ogiltigt.',
  98. 'numeric' => ':Attribute måste vara en siffra.',
  99. 'password' => 'Lösenordet är fel.',
  100. 'present' => ':Attribute måste finnas med.',
  101. 'prohibited' => 'Fältet :attribute är förbjudet.',
  102. 'prohibited_if' => ':attribute är förbjudet när :other är :value.',
  103. 'prohibited_unless' => ':attribute är förbjudet om inte :other är :values.',
  104. 'prohibits' => 'The :attribute field prohibits :other from being present.',
  105. 'regex' => ':Attribute har ogiltigt format.',
  106. 'relatable' => 'Denna :attribute kanske inte är associerad med den här resursen.',
  107. 'required' => ':Attribute är obligatoriskt.',
  108. 'required_if' => ':Attribute är obligatoriskt när :other är :value.',
  109. 'required_unless' => ':Attribute är obligatoriskt när inte :other finns bland :values.',
  110. 'required_with' => ':Attribute är obligatoriskt när :values är ifyllt.',
  111. 'required_with_all' => ':Attribute är obligatoriskt när :values är ifyllt.',
  112. 'required_without' => ':Attribute är obligatoriskt när :values ej är ifyllt.',
  113. 'required_without_all' => ':Attribute är obligatoriskt när ingen av :values är ifyllt.',
  114. 'same' => ':Attribute och :other måste vara lika.',
  115. 'size' => [
  116. 'array' => ':Attribute måste innehålla :size objekt.',
  117. 'file' => ':Attribute får endast vara :size kilobyte stor.',
  118. 'numeric' => ':Attribute måste vara :size.',
  119. 'string' => ':Attribute måste innehålla :size tecken.',
  120. ],
  121. 'starts_with' => ':Attribute måste börja med en av följande: :values',
  122. 'string' => ':Attribute måste vara en sträng.',
  123. 'timezone' => ':Attribute måste vara en giltig tidszon.',
  124. 'unique' => ':Attribute används redan.',
  125. 'uploaded' => ':Attribute kunde inte laddas upp.',
  126. 'url' => ':Attribute har ett ogiltigt format.',
  127. 'uuid' => ':Attribute måste vara ett giltigt UUID.',
  128. 'custom' => [
  129. 'attribute-name' => [
  130. 'rule-name' => 'custom-message',
  131. ],
  132. ],
  133. ];