]> BookStack Code Mirror - bookstack/blob - resources/lang/en/validation.php
Aligned notification capitalisation
[bookstack] / resources / lang / en / validation.php
1 <?php
2 /**
3  * Validation Lines
4  * The following language lines contain the default error messages used by
5  * the validator class. Some of these rules have multiple versions such
6  * as the size rules. Feel free to tweak each of these messages here.
7  */
8 return [
9
10     // Standard laravel validation lines
11     'accepted'             => 'The :attribute must be accepted.',
12     'active_url'           => 'The :attribute is not a valid URL.',
13     'after'                => 'The :attribute must be a date after :date.',
14     'alpha'                => 'The :attribute may only contain letters.',
15     'alpha_dash'           => 'The :attribute may only contain letters, numbers, dashes and underscores.',
16     'alpha_num'            => 'The :attribute may only contain letters and numbers.',
17     'array'                => 'The :attribute must be an array.',
18     'backup_codes'         => 'The provided code is not valid or has already been used.',
19     'before'               => 'The :attribute must be a date before :date.',
20     'between'              => [
21         'numeric' => 'The :attribute must be between :min and :max.',
22         'file'    => 'The :attribute must be between :min and :max kilobytes.',
23         'string'  => 'The :attribute must be between :min and :max characters.',
24         'array'   => 'The :attribute must have between :min and :max items.',
25     ],
26     'boolean'              => 'The :attribute field must be true or false.',
27     'confirmed'            => 'The :attribute confirmation does not match.',
28     'date'                 => 'The :attribute is not a valid date.',
29     'date_format'          => 'The :attribute does not match the format :format.',
30     'different'            => 'The :attribute and :other must be different.',
31     'digits'               => 'The :attribute must be :digits digits.',
32     'digits_between'       => 'The :attribute must be between :min and :max digits.',
33     'email'                => 'The :attribute must be a valid email address.',
34     'ends_with' => 'The :attribute must end with one of the following: :values',
35     'filled'               => 'The :attribute field is required.',
36     'gt'                   => [
37         'numeric' => 'The :attribute must be greater than :value.',
38         'file'    => 'The :attribute must be greater than :value kilobytes.',
39         'string'  => 'The :attribute must be greater than :value characters.',
40         'array'   => 'The :attribute must have more than :value items.',
41     ],
42     'gte'                  => [
43         'numeric' => 'The :attribute must be greater than or equal :value.',
44         'file'    => 'The :attribute must be greater than or equal :value kilobytes.',
45         'string'  => 'The :attribute must be greater than or equal :value characters.',
46         'array'   => 'The :attribute must have :value items or more.',
47     ],
48     'exists'               => 'The selected :attribute is invalid.',
49     'image'                => 'The :attribute must be an image.',
50     'image_extension'      => 'The :attribute must have a valid & supported image extension.',
51     'in'                   => 'The selected :attribute is invalid.',
52     'integer'              => 'The :attribute must be an integer.',
53     'ip'                   => 'The :attribute must be a valid IP address.',
54     'ipv4'                 => 'The :attribute must be a valid IPv4 address.',
55     'ipv6'                 => 'The :attribute must be a valid IPv6 address.',
56     'json'                 => 'The :attribute must be a valid JSON string.',
57     'lt'                   => [
58         'numeric' => 'The :attribute must be less than :value.',
59         'file'    => 'The :attribute must be less than :value kilobytes.',
60         'string'  => 'The :attribute must be less than :value characters.',
61         'array'   => 'The :attribute must have less than :value items.',
62     ],
63     'lte'                  => [
64         'numeric' => 'The :attribute must be less than or equal :value.',
65         'file'    => 'The :attribute must be less than or equal :value kilobytes.',
66         'string'  => 'The :attribute must be less than or equal :value characters.',
67         'array'   => 'The :attribute must not have more than :value items.',
68     ],
69     'max'                  => [
70         'numeric' => 'The :attribute may not be greater than :max.',
71         'file'    => 'The :attribute may not be greater than :max kilobytes.',
72         'string'  => 'The :attribute may not be greater than :max characters.',
73         'array'   => 'The :attribute may not have more than :max items.',
74     ],
75     'mimes'                => 'The :attribute must be a file of type: :values.',
76     'min'                  => [
77         'numeric' => 'The :attribute must be at least :min.',
78         'file'    => 'The :attribute must be at least :min kilobytes.',
79         'string'  => 'The :attribute must be at least :min characters.',
80         'array'   => 'The :attribute must have at least :min items.',
81     ],
82     'not_in'               => 'The selected :attribute is invalid.',
83     'not_regex'            => 'The :attribute format is invalid.',
84     'numeric'              => 'The :attribute must be a number.',
85     'regex'                => 'The :attribute format is invalid.',
86     'required'             => 'The :attribute field is required.',
87     'required_if'          => 'The :attribute field is required when :other is :value.',
88     'required_with'        => 'The :attribute field is required when :values is present.',
89     'required_with_all'    => 'The :attribute field is required when :values is present.',
90     'required_without'     => 'The :attribute field is required when :values is not present.',
91     'required_without_all' => 'The :attribute field is required when none of :values are present.',
92     'same'                 => 'The :attribute and :other must match.',
93     'safe_url'             => 'The provided link may not be safe.',
94     'size'                 => [
95         'numeric' => 'The :attribute must be :size.',
96         'file'    => 'The :attribute must be :size kilobytes.',
97         'string'  => 'The :attribute must be :size characters.',
98         'array'   => 'The :attribute must contain :size items.',
99     ],
100     'string'               => 'The :attribute must be a string.',
101     'timezone'             => 'The :attribute must be a valid zone.',
102     'totp'                 => 'The provided code is not valid or has expired.',
103     'unique'               => 'The :attribute has already been taken.',
104     'url'                  => 'The :attribute format is invalid.',
105     'uploaded'             => 'The file could not be uploaded. The server may not accept files of this size.',
106
107     // Custom validation lines
108     'custom' => [
109         'password-confirm' => [
110             'required_with' => 'Password confirmation required',
111         ],
112     ],
113
114     // Custom validation attributes
115     'attributes' => [],
116 ];