Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/lang/en/validation.php
7459 views
1
<?php
2
3
return [
4
/*
5
|--------------------------------------------------------------------------
6
| Validation Language Lines
7
|--------------------------------------------------------------------------
8
|
9
| The following language lines contain the default error messages used by
10
| the validator class. Some of these rules have multiple versions such
11
| as the size rules. Feel free to tweak each of these messages here.
12
|
13
*/
14
15
'accepted' => 'The :attribute must be accepted.',
16
'active_url' => 'The :attribute is not a valid URL.',
17
'after' => 'The :attribute must be a date after :date.',
18
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
19
'alpha' => 'The :attribute may only contain letters.',
20
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
21
'alpha_num' => 'The :attribute may only contain letters and numbers.',
22
'array' => 'The :attribute must be an array.',
23
'before' => 'The :attribute must be a date before :date.',
24
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
25
'between' => [
26
'numeric' => 'The :attribute must be between :min and :max.',
27
'file' => 'The :attribute must be between :min and :max kilobytes.',
28
'string' => 'The :attribute must be between :min and :max characters.',
29
'array' => 'The :attribute must have between :min and :max items.',
30
],
31
'boolean' => 'The :attribute field must be true or false.',
32
'confirmed' => 'The :attribute confirmation does not match.',
33
'date' => 'The :attribute is not a valid date.',
34
'date_format' => 'The :attribute does not match the format :format.',
35
'different' => 'The :attribute and :other must be different.',
36
'digits' => 'The :attribute must be :digits digits.',
37
'digits_between' => 'The :attribute must be between :min and :max digits.',
38
'dimensions' => 'The :attribute has invalid image dimensions.',
39
'distinct' => 'The :attribute field has a duplicate value.',
40
'email' => 'The :attribute must be a valid email address.',
41
'exists' => 'The selected :attribute is invalid.',
42
'file' => 'The :attribute must be a file.',
43
'filled' => 'The :attribute field is required.',
44
'image' => 'The :attribute must be an image.',
45
'in' => 'The selected :attribute is invalid.',
46
'in_array' => 'The :attribute field does not exist in :other.',
47
'integer' => 'The :attribute must be an integer.',
48
'ip' => 'The :attribute must be a valid IP address.',
49
'json' => 'The :attribute must be a valid JSON string.',
50
'max' => [
51
'numeric' => 'The :attribute may not be greater than :max.',
52
'file' => 'The :attribute may not be greater than :max kilobytes.',
53
'string' => 'The :attribute may not be greater than :max characters.',
54
'array' => 'The :attribute may not have more than :max items.',
55
],
56
'mimes' => 'The :attribute must be a file of type: :values.',
57
'mimetypes' => 'The :attribute must be a file of type: :values.',
58
'min' => [
59
'numeric' => 'The :attribute must be at least :min.',
60
'file' => 'The :attribute must be at least :min kilobytes.',
61
'string' => 'The :attribute must be at least :min characters.',
62
'array' => 'The :attribute must have at least :min items.',
63
],
64
'not_in' => 'The selected :attribute is invalid.',
65
'numeric' => 'The :attribute must be a number.',
66
'present' => 'The :attribute field must be present.',
67
'regex' => 'The :attribute format is invalid.',
68
'required' => 'The :attribute field is required.',
69
'required_if' => 'The :attribute field is required when :other is :value.',
70
'required_unless' => 'The :attribute field is required unless :other is in :values.',
71
'required_with' => 'The :attribute field is required when :values is present.',
72
'required_with_all' => 'The :attribute field is required when :values is present.',
73
'required_without' => 'The :attribute field is required when :values is not present.',
74
'required_without_all' => 'The :attribute field is required when none of :values are present.',
75
'same' => 'The :attribute and :other must match.',
76
'size' => [
77
'numeric' => 'The :attribute must be :size.',
78
'file' => 'The :attribute must be :size kilobytes.',
79
'string' => 'The :attribute must be :size characters.',
80
'array' => 'The :attribute must contain :size items.',
81
],
82
'string' => 'The :attribute must be a string.',
83
'timezone' => 'The :attribute must be a valid zone.',
84
'unique' => 'The :attribute has already been taken.',
85
'uploaded' => 'The :attribute failed to upload.',
86
'url' => 'The :attribute format is invalid.',
87
88
/*
89
|--------------------------------------------------------------------------
90
| Custom Validation Attributes
91
|--------------------------------------------------------------------------
92
|
93
| The following language lines are used to swap attribute place-holders
94
| with something more reader friendly such as E-Mail Address instead
95
| of "email". This simply helps us make messages a little cleaner.
96
|
97
*/
98
99
'attributes' => [],
100
101
// Internal validation logic for Pterodactyl
102
'internal' => [
103
'variable_value' => ':env variable',
104
'invalid_password' => 'The password provided was invalid for this account.',
105
],
106
];
107
108