validation.php 6.4 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 musí být akceptován.',
  14. 'active_url' => ':attribute není platná URL adresa.',
  15. 'after' => ':attribute musí být datum po :date.',
  16. 'after_or_equal' => ':attribute musí být datum po nebo rovný datu :date.',
  17. 'alpha' => ':attribute musí obsahovat pouze písmena.',
  18. 'alpha_dash' => ':attribute musí obsahovat pouze písmena, číslice a podtržítka.',
  19. 'alpha_num' => ':attribute musí obsahovat pouze písmena a číslice.',
  20. 'array' => ':attribute musí být pole.',
  21. 'before' => ':attribute musí být datum před :date.',
  22. 'before_or_equal' => ':attribute musí být datum před nebo rovný datu :date.',
  23. 'between' => [
  24. 'numeric' => ':attribute musí být mezi :min a :max.',
  25. 'file' => ':attribute musí být mezi :min a :max kilobyty.',
  26. 'string' => ':attribute musí být mezi :min a :max znaky.',
  27. 'array' => ':attribute musí mít mezi :min a :max položkami.',
  28. ],
  29. 'boolean' => 'Pole :attribute musí být true nebo false.',
  30. 'confirmed' => 'Potvrzení :attribute se neshoduje.',
  31. 'date' => ':attribute není platné datum.',
  32. 'date_format' => ':attribute se neshoduje s formátem :format.',
  33. 'different' => ':attribute a :other musí být jiné.',
  34. 'digits' => ':attribute musí mít :digits číslic.',
  35. 'digits_between' => ':attribute musí mít mezi :min a :max číslicemi.',
  36. 'dimensions' => ':attribute má neplatné rozměry obrázku.',
  37. 'distinct' => 'Pole :attribute má duplicitní hodnotu.',
  38. 'email' => ':attribute musí být platná e-mailová adresa.',
  39. 'exists' => 'Zvolený :attribute je neplatný.',
  40. 'file' => ':attribute musí být soubor.',
  41. 'filled' => 'Pole :attribute musí mít hodnotu.',
  42. 'image' => ':attribute musí být obrázek.',
  43. 'in' => 'Zvolený :attribute je neplatný.',
  44. 'in_array' => 'Pole :attribute neexistuje v :other.',
  45. 'integer' => ':attribute musí být celé číslo.',
  46. 'ip' => ':attribute musí být platná IP adresa.',
  47. 'ipv4' => ':attribute musí být platná IPv4 adresa.',
  48. 'ipv6' => ':attribute musí být platná IPv6 adresa.',
  49. 'json' => ':attribute musí být platný řetězec JSON.',
  50. 'max' => [
  51. 'numeric' => ':attribute nesmí být větší než :max.',
  52. 'file' => ':attribute nesmí být větší než :max kilobytů.',
  53. 'string' => ':attribute nesmí být větší než :max znaků.',
  54. 'array' => ':attribute nesmí mít více než :max položek.',
  55. ],
  56. 'mimes' => ':attribute musí být soubor typu: :values.',
  57. 'mimetypes' => ':attribute musí být soubor typu: :values.',
  58. 'min' => [
  59. 'numeric' => ':attribute musí být alespoň :min.',
  60. 'file' => ':attribute musí být alespoň :min kilobytů.',
  61. 'string' => ':attribute musí být alespoň :min znaků.',
  62. 'array' => ':attribute musí mít alespoň :min položek.',
  63. ],
  64. 'not_in' => 'Zvolený :attribute je neplatný.',
  65. 'not_regex' => 'Formát :attribute je neplatný.',
  66. 'numeric' => ':attribute musí být číslo.',
  67. 'present' => 'Pole :attribute musí být přítomné.',
  68. 'regex' => 'Formát :attribute je neplatný.',
  69. 'required' => 'Pole :attribute je vyžadováno.',
  70. 'required_if' => 'Pole :attribute je vyžadováno, pokud je :other :value.',
  71. 'required_unless' => 'Pole :attribute je vyžadováno, pokud není :other v :values.',
  72. 'required_with' => 'Pole :attribute je vyžadováno, pokud je přítomno :values.',
  73. 'required_with_all' => 'Pole :attribute je vyžadováno, pokud je přítomno :values.',
  74. 'required_without' => 'Pole :attribute je vyžadováno, pokud není přítomno :values.',
  75. 'required_without_all' => 'Pole :attribute je vyžadováno, pokud není přítomno žádné z :values.',
  76. 'same' => ':attribute a :other se musí shodovat.',
  77. 'size' => [
  78. 'numeric' => ':attribute musí být :size.',
  79. 'file' => ':attribute musí být :size kilobytů.',
  80. 'string' => ':attribute musí být :size znaků.',
  81. 'array' => ':attribute musí obsahovat :size položek.',
  82. ],
  83. 'string' => ':attribute musí být řetězec.',
  84. 'timezone' => ':attribute musí být platná zóna.',
  85. 'unique' => ':attribute je již zabráno.',
  86. 'uploaded' => 'Nahrávání :attribute selhalo.',
  87. 'url' => 'Formát :attribute je neplatný.',
  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. ];