validation.php 7.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' => 'Потрібно прийняти :attribute.',
  14. 'active_url' => ':attribute — хибна URL-адреса.',
  15. 'after' => ':attribute мусить бути пізніше, ніж :date.',
  16. 'after_or_equal' => ':attribute мусить бути не раніше, ніж :date.',
  17. 'alpha' => ':attribute може містити лише літери.',
  18. 'alpha_dash' => ':attribute може містити лише літери, цифри й дефіси.',
  19. 'alpha_num' => ':attribute може містити лише літери й цифри.',
  20. 'array' => ':attribute мусить бути масивом.',
  21. 'before' => ':attribute мусить бути раніше, ніж :date.',
  22. 'before_or_equal' => ':attribute мусить бути не пізніше, ніж :date.',
  23. 'between' => [
  24. 'numeric' => ':attribute мусить бути між :min і :max.',
  25. 'file' => ':attribute мусить містити від :min до :max кілобайтів.',
  26. 'string' => ':attribute мусить містити від :min до :max знаків.',
  27. 'array' => ':attribute мусить містити від :min до :max пунктів.',
  28. ],
  29. 'boolean' => 'Поле :attribute мусить бути істинним чи хибним.',
  30. 'confirmed' => 'Підтвердження :attribute не збігається.',
  31. 'date' => ':attribute — хибна дата.',
  32. 'date_format' => ':attribute не відповідає формату :format.',
  33. 'different' => ':attribute та :other мусять відрізнятися.',
  34. 'digits' => ':attribute мусить містити :digits цифр.',
  35. 'digits_between' => ':attribute мусить містити від :min до :max цифр.',
  36. 'dimensions' => ':attribute має хибну ширину чи висоту.',
  37. 'distinct' => 'Поле :attribute містить дубль.',
  38. 'email' => ':attribute мусить бути чинною адресою е-пошти.',
  39. 'exists' => ':attribute — не ок.',
  40. 'file' => ':attribute мусить бути файлом.',
  41. 'filled' => 'Полю :attribute бракує значення.',
  42. 'image' => ':attribute мусить бути зображенням.',
  43. 'in' => ':attribute — не ок.',
  44. 'in_array' => 'Поля :attribute нема серед :other.',
  45. 'integer' => ':attribute мусить бути числом.',
  46. 'ip' => ':attribute мусить бути чинною IP-адресою.',
  47. 'ipv4' => ':attribute мусить бути чинною IPv4-адресою.',
  48. 'ipv6' => ':attribute мусить бути чинною IPv6-адресою.',
  49. 'json' => ':attribute мусить бути чинним JSON-рядком.',
  50. 'max' => [
  51. 'numeric' => ':attribute мусить не перевищувати :max.',
  52. 'file' => ':attribute мусить містити не більше, ніж :max кілобайтів.',
  53. 'string' => ':attribute мусить містити не більше, ніж :max символів.',
  54. 'array' => ':attribute мусить містити не більше, ніж :max пунктів.',
  55. ],
  56. 'mimes' => ':attribute мусить бути файлом: :values.',
  57. 'mimetypes' => ':attribute мусить бути файлом: :values.',
  58. 'min' => [
  59. 'numeric' => ':attribute мусить бути не менше, ніж :max.',
  60. 'file' => ':attribute мусить містити не менше, ніж :max кілобайтів.',
  61. 'string' => ':attribute мусить містити не менше, ніж :max символів.',
  62. 'array' => ':attribute мусить містити не менше, ніж :max пунктів.',
  63. ],
  64. 'not_in' => ':attribute містить хибний вибір.',
  65. 'not_regex' => 'Формат :attribute хибний.',
  66. 'numeric' => ':attribute мусить бути числом.',
  67. 'present' => 'Бракує поля :attribute.',
  68. 'regex' => 'Формат :attribute хибний.',
  69. 'required' => "Поле :attribute обов'язкове.",
  70. 'required_if' => "Поле :attribute обов'язкове, коли :other — :value.",
  71. 'required_unless' => "Поле :attribute обов'язкове unless :other is in :values.",
  72. 'required_with' => "Поле :attribute обов'язкове, коли є :values.",
  73. 'required_with_all' => "Поле :attribute обов'язкове, коли є :values.",
  74. 'required_without' => "Поле :attribute обов'язкове, коли бракує :values.",
  75. 'required_without_all' => "Поле :attribute обов'язкове, коли бракує :values.",
  76. 'same' => 'The :attribute and :other must match.',
  77. 'size' => [
  78. 'numeric' => ':attribute мусить бути :size.',
  79. 'file' => ':attribute мусить містити :size кілобайтів.',
  80. 'string' => ':attribute мусить містити :size символів.',
  81. 'array' => ':attribute мусить містити :size пунктів.',
  82. ],
  83. 'string' => ':attribute мусить бути рядком.',
  84. 'timezone' => ':attribute мусить бути чинним поясом.',
  85. 'unique' => ':attribute уже зайнято.',
  86. 'uploaded' => 'Не вдалося вивантажити :attribute.',
  87. 'url' => 'Формат :attribute хибний.',
  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. ];