validation.php
8.46 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?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 muss akzeptiert werden.',
'active_url' => ':attribute ist keine gültige URL.',
'after' => ':attribute muss ein Datun nach dem :date sein.',
'after_or_equal' => 'Das :attribute muss ein Datum nach oder gleich :date sein.',
'alpha' => ':attribute darf nur Buchstaben enthalten.',
'alpha_dash' => ':attribute darf nur Buchstaben, Nummern und Bindestriche enthalten.',
'alpha_num' => ':attribute darf nur Buchstaben und Nummern enthalten.',
'array' => ':attribute muss ein Array sein.',
'before' => ':attribute muss ein Datum vor dem :date sein.',
'before_or_equal' => 'Das :attribute muss ein Datum vor oder gleich dem :date sein.',
'between' => [
'numeric' => ':attribute muss zwischen :min und :max sein.',
'file' => ':attribute muss zwischen :min und :max Kilobytes gross sein.',
'string' => ':attribute muss zwischen :min und :max Zeichen lang sein.',
'array' => ':attribute muss zwischen :min und :max Einträge enthalten.',
],
'boolean' => ':attribute darf nur Wahr oder Falsch sein.',
'confirmed' => ':attribute Wiederholung stimmt nicht überein.',
'date' => ':attribute ist kein gültiges Datum.',
'date_format' => ':attribute ist nicht im Format: :format.',
'different' => ':attribute und :other müssen unterschiedlich sein.',
'digits' => ':attribute muss :digits Ziffern enthalten.',
'digits_between' => ':attribute muss zwischen :min und :max Ziffern enthalten.',
'dimensions' => 'Das :attribute hat ungültige Bildabmessungen.',
'distinct' => 'Das :attribute Feld hat einen Wert, der bereits verwendet wurde.',
'email' => ':attribute muss eine gültige E-Mailadresse sein.',
'exists' => ':attribute ist ungültig.',
'file' => 'Das :attribute muss eine Datei sein.',
'filled' => ':attribute ist erforderlich.',
'image' => ':attribute muss ein Bild sein.',
'in' => ':attribute ist ungültig.',
'in_array' => 'Das :attribute-Feld existiert nicht in :other.',
'integer' => ':attribute muss eine Ganzzahl sein.',
'ip' => ':attribute muss eine gültige IP-Adresse sein.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => ':attribute muss eine gültige JSON-Zeichenkette sein.',
'max' => [
'numeric' => ':attribute darf nicht grösser sein als :max.',
'file' => ':attribute darf nicht grösser sein als :max Kilobytes.',
'string' => ':attribute darf nicht grösser sein als :max Zeichen.',
'array' => ':attribute darf nicht mehr Einträge enthalten als :max Einträge.',
],
'mimes' => ':attribute muss eine Datei des folgenden Typs sein: :values.',
'min' => [
'numeric' => ':attribute muss mindestens :min sein.',
'file' => ':attribute muss mindestens :min Kilobytes gross sein.',
'string' => ':attribute muss mindestens :min Zeichen lang sein.',
'array' => ':attribute muss mindestens :min Einträge enthalten.',
],
'not_in' => ':attribute ist ungültig.',
'numeric' => ':attribute muss eine Zahl sein.',
'present' => 'Das :attribute-Feld muss vorhanden sein.',
'regex' => ':attribute enthält ein ungültiges Format.',
'required' => ':attribute ist erforderlich.',
'required_if' => ':attribute ist erforderlich, wenn :other folgenden Wert hat: :value.',
'required_unless' => ':attribute ist erforderlich, ausser :other enthält :values.',
'required_with' => ':attribute ist erforderlich, wenn :values vorhanden ist.',
'required_with_all' => ':attribute ist erforderlich, wenn :values vorhanden ist.',
'required_without' => ':attribute ist erforderlich, wenn :values nicht vorhanden ist.',
'required_without_all' => ':attribute ist erforderlich, wenn keine von :values vorhanden ist.',
'same' => ':attribute und :other müssen gleich sein.',
'size' => [
'numeric' => ':attribute muss :size gross ein.',
'file' => ':attribute muss :size Kilobytes gross sein.',
'string' => ':attribute muss :size Zeichen enthalten.',
'array' => ':attribute muss :size Einträge enthalten.',
],
'string' => ':attribute muss eine Zeichenkette sein.',
'timezone' => ':attribute muss eine gültige Zeitzone sein.',
'unique' => ':attribute ist schon vergeben.',
'url' => ':attribute Format ist ungültig.',
/*
|--------------------------------------------------------------------------
| 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' => 'Individuelle-Nachricht',
],
],
/*
|--------------------------------------------------------------------------
| 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' => [
'backend' => [
'access' => [
'permissions' => [
'associated_roles' => 'Zugeordnete Rollen',
'dependencies' => 'Abhängigkeiten',
'display_name' => 'Anzeige-Name',
'group' => 'Gruppe',
'group_sort' => 'Gruppen-Sortierung',
'groups' => [
'name' => 'Gruppen-Name',
],
'name' => 'Name',
'system' => 'System?',
],
'roles' => [
'associated_permissions' => 'Zugeordnerte Berechtigungen',
'name' => 'Name',
'sort' => 'Sortierung',
],
'users' => [
'active' => 'Aktiv',
'associated_roles' => 'Zugeordnerte Rollen',
'confirmed' => 'Bestätigt',
'email' => 'E-Mailadresse',
'name' => 'Name',
'other_permissions' => 'Andere Berechtigungen',
'password' => 'Kennwort',
'password_confirmation' => 'Kennwort (Wdh.)',
'send_confirmation_email' => 'Bestätigungs E-Mail senden',
],
],
],
'frontend' => [
'email' => 'E-Mailadresse',
'name' => 'Name',
'password' => 'Kennwort',
'password_confirmation' => 'Kennwort (Wdh.)',
'phone' => 'Phone',
'message' => 'Message',
'old_password' => 'Altes Kennwort',
'new_password' => 'Neues Kennwort',
'new_password_confirmation' => 'Neues Kennwort (Wdh.)',
],
],
];