validation.php
6.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':attribute musí být přijat.',
'active_url' => ':attribute není platnou URL adresou.',
'after' => ':attribute musí být datum po :date.',
'after_or_equal' => ':attribute musí být datum po nebo rovné :date.',
'alpha' => ':attribute může obsahovat pouze písmena.',
'alpha_dash' => ':attribute může obsahovat pouze písmena, číslice, pomlčky a podtržítka. České znaky (á, é, í, ó, ú, ů, ž, š, č, ř, ď, ť, ň) nejsou podporovány.',
'alpha_num' => ':attribute může obsahovat pouze písmena a číslice.',
'array' => ':attribute musí být pole.',
'before' => ':attribute musí být datum před :date.',
'before_or_equal' => ':attribute musí být datum před nebo rovné :date.',
'between' => [
'numeric' => ':attribute musí být hodnota mezi :min a :max.',
'file' => ':attribute musí být větší než :min a menší než :max Kilobytů.',
'string' => ':attribute musí být delší než :min a kratší než :max znaků.',
'array' => ':attribute musí obsahovat nejméně :min a nesmí obsahovat více než :max prvků.',
],
'boolean' => ':attribute musí být true nebo false',
'confirmed' => ':attribute nebylo odsouhlaseno.',
'date' => ':attribute musí být platné datum.',
'date_format' => ':attribute není platný formát data podle :format.',
'different' => ':attribute a :other se musí lišit.',
'digits' => ':attribute musí být :digits pozic dlouhé.',
'digits_between' => ':attribute musí být dlouhé nejméně :min a nejvíce :max pozic.',
'dimensions' => ':attribute má neplatné rozměry.',
'distinct' => ':attribute má duplicitní hodnotu.',
'email' => ':attribute není platný formát.',
'exists' => 'Zvolená hodnota pro :attribute není platná.',
'file' => ':attribute musí být soubor.',
'filled' => ':attribute musí být vyplněno.',
'image' => ':attribute musí být obrázek.',
'in' => 'Zvolená hodnota pro :attribute je neplatná.',
'in_array' => ':attribute není obsažen v :other.',
'integer' => ':attribute musí být celé číslo.',
'ip' => ':attribute musí být platnou IP adresou.',
'json' => ':attribute musí být platný JSON řetězec.',
'max' => [
'numeric' => ':attribute musí být nižší než :max.',
'file' => ':attribute musí být menší než :max Kilobytů.',
'string' => ':attribute musí být kratší než :max znaků.',
'array' => ':attribute nesmí obsahovat více než :max prvků.',
],
'mimes' => ':attribute musí být jeden z následujících datových typů :values.',
'mimetypes' => ':attribute musí být jeden z následujících datových typů :values.',
'min' => [
'numeric' => ':attribute musí být větší než :min.',
'file' => ':attribute musí být větší než :min Kilobytů.',
'string' => ':attribute musí být delší než :min znaků.',
'array' => ':attribute musí obsahovat více než :min prvků.',
],
'not_in' => 'Zvolená hodnota pro :attribute je neplatná.',
'numeric' => ':attribute musí být číslo.',
'present' => ':attribute musí být vyplněno.',
'regex' => ':attribute nemá správný formát.',
'required' => ':attribute musí být vyplněno.',
'required_if' => ':attribute musí být vyplněno pokud :other je :value.',
'required_unless' => ':attribute musí být vyplněno dokud :other je v :values.',
'required_with' => ':attribute musí být vyplněno pokud :values je vyplněno.',
'required_with_all' => ':attribute musí být vyplněno pokud :values je zvoleno.',
'required_without' => ':attribute musí být vyplněno pokud :values není vyplněno.',
'required_without_all' => ':attribute musí být vyplněno pokud není žádné z :values zvoleno.',
'same' => ':attribute a :other se musí shodovat.',
'size' => [
'numeric' => ':attribute musí být přesně :size.',
'file' => ':attribute musí mít přesně :size Kilobytů.',
'string' => ':attribute musí být přesně :size znaků dlouhý.',
'array' => ':attribute musí obsahovat právě :size prvků.',
],
'string' => ':attribute musí být řetězec znaků.',
'timezone' => ':attribute musí být platná časová zóna.',
'unique' => ':attribute musí být unikátní.',
'uploaded' => 'Nahrávání :attribute se nezdařilo.',
'url' => 'Formát :attribute je neplatný.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];