]> BookStack Code Mirror - bookstack/blob - resources/lang/en/validation.php
Merge branch 'create-content-meta-tags' of https://github.com/james-geiger/BookStack...
[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     'before'               => 'The :attribute must be a date before :date.',
19     'between'              => [
20         'numeric' => 'The :attribute must be between :min and :max.',
21         'file'    => 'The :attribute must be between :min and :max kilobytes.',
22         'string'  => 'The :attribute must be between :min and :max characters.',
23         'array'   => 'The :attribute must have between :min and :max items.',
24     ],
25     'boolean'              => 'The :attribute field must be true or false.',
26     'confirmed'            => 'The :attribute confirmation does not match.',
27     'date'                 => 'The :attribute is not a valid date.',
28     'date_format'          => 'The :attribute does not match the format :format.',
29     'different'            => 'The :attribute and :other must be different.',
30     'digits'               => 'The :attribute must be :digits digits.',
31     'digits_between'       => 'The :attribute must be between :min and :max digits.',
32     'email'                => 'The :attribute must be a valid email address.',
33     'ends_with' => 'The :attribute must end with one of the following: :values',
34     'filled'               => 'The :attribute field is required.',
35     'gt'                   => [
36         'numeric' => 'The :attribute must be greater than :value.',
37         'file'    => 'The :attribute must be greater than :value kilobytes.',
38         'string'  => 'The :attribute must be greater than :value characters.',
39         'array'   => 'The :attribute must have more than :value items.',
40     ],
41     'gte'                  => [
42         'numeric' => 'The :attribute must be greater than or equal :value.',
43         'file'    => 'The :attribute must be greater than or equal :value kilobytes.',
44         'string'  => 'The :attribute must be greater than or equal :value characters.',
45         'array'   => 'The :attribute must have :value items or more.',
46     ],
47     'exists'               => 'The selected :attribute is invalid.',
48     'image'                => 'The :attribute must be an image.',
49     'image_extension'      => 'The :attribute must have a valid & supported image extension.',
50     'in'                   => 'The selected :attribute is invalid.',
51     'integer'              => 'The :attribute must be an integer.',
52     'ip'                   => 'The :attribute must be a valid IP address.',
53     'ipv4'                 => 'The :attribute must be a valid IPv4 address.',
54     'ipv6'                 => 'The :attribute must be a valid IPv6 address.',
55     'json'                 => 'The :attribute must be a valid JSON string.',
56     'lt'                   => [
57         'numeric' => 'The :attribute must be less than :value.',
58         'file'    => 'The :attribute must be less than :value kilobytes.',
59         'string'  => 'The :attribute must be less than :value characters.',
60         'array'   => 'The :attribute must have less than :value items.',
61     ],
62     'lte'                  => [
63         'numeric' => 'The :attribute must be less than or equal :value.',
64         'file'    => 'The :attribute must be less than or equal :value kilobytes.',
65         'string'  => 'The :attribute must be less than or equal :value characters.',
66         'array'   => 'The :attribute must not have more than :value items.',
67     ],
68     'max'                  => [
69         'numeric' => 'The :attribute may not be greater than :max.',
70         'file'    => 'The :attribute may not be greater than :max kilobytes.',
71         'string'  => 'The :attribute may not be greater than :max characters.',
72         'array'   => 'The :attribute may not have more than :max items.',
73     ],
74     'mimes'                => 'The :attribute must be a file of type: :values.',
75     'min'                  => [
76         'numeric' => 'The :attribute must be at least :min.',
77         'file'    => 'The :attribute must be at least :min kilobytes.',
78         'string'  => 'The :attribute must be at least :min characters.',
79         'array'   => 'The :attribute must have at least :min items.',
80     ],
81     'not_in'               => 'The selected :attribute is invalid.',
82     'not_regex'            => 'The :attribute format is invalid.',
83     'numeric'              => 'The :attribute must be a number.',
84     'regex'                => 'The :attribute format is invalid.',
85     'required'             => 'The :attribute field is required.',
86     'required_if'          => 'The :attribute field is required when :other is :value.',
87     'required_with'        => 'The :attribute field is required when :values is present.',
88     'required_with_all'    => 'The :attribute field is required when :values is present.',
89     'required_without'     => 'The :attribute field is required when :values is not present.',
90     'required_without_all' => 'The :attribute field is required when none of :values are present.',
91     'same'                 => 'The :attribute and :other must match.',
92     'safe_url'             => 'The provided link may not be safe.',
93     'size'                 => [
94         'numeric' => 'The :attribute must be :size.',
95         'file'    => 'The :attribute must be :size kilobytes.',
96         'string'  => 'The :attribute must be :size characters.',
97         'array'   => 'The :attribute must contain :size items.',
98     ],
99     'string'               => 'The :attribute must be a string.',
100     'timezone'             => 'The :attribute must be a valid zone.',
101     'unique'               => 'The :attribute has already been taken.',
102     'url'                  => 'The :attribute format is invalid.',
103     'uploaded'             => 'The file could not be uploaded. The server may not accept files of this size.',
104
105     // Custom validation lines
106     'custom' => [
107         'password-confirm' => [
108             'required_with' => 'Password confirmation required',
109         ],
110     ],
111
112     // Custom validation attributes
113     'attributes' => [],
114 ];