]> BookStack Code Mirror - bookstack/blob - resources/lang/en/validation.php
Update passwords.php
[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, and dashes.',
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     'filled'               => 'The :attribute field is required.',
34     'exists'               => 'The selected :attribute is invalid.',
35     'image'                => 'The :attribute must be an image.',
36     'image_extension'      => 'The :attribute must have a valid & supported image extension.',
37     'in'                   => 'The selected :attribute is invalid.',
38     'integer'              => 'The :attribute must be an integer.',
39     'ip'                   => 'The :attribute must be a valid IP address.',
40     'max'                  => [
41         'numeric' => 'The :attribute may not be greater than :max.',
42         'file'    => 'The :attribute may not be greater than :max kilobytes.',
43         'string'  => 'The :attribute may not be greater than :max characters.',
44         'array'   => 'The :attribute may not have more than :max items.',
45     ],
46     'mimes'                => 'The :attribute must be a file of type: :values.',
47     'min'                  => [
48         'numeric' => 'The :attribute must be at least :min.',
49         'file'    => 'The :attribute must be at least :min kilobytes.',
50         'string'  => 'The :attribute must be at least :min characters.',
51         'array'   => 'The :attribute must have at least :min items.',
52     ],
53     'no_double_extension'  => 'The :attribute must only have a single file extension.',
54     'not_in'               => 'The selected :attribute is invalid.',
55     'numeric'              => 'The :attribute must be a number.',
56     'regex'                => 'The :attribute format is invalid.',
57     'required'             => 'The :attribute field is required.',
58     'required_if'          => 'The :attribute field is required when :other is :value.',
59     'required_with'        => 'The :attribute field is required when :values is present.',
60     'required_with_all'    => 'The :attribute field is required when :values is present.',
61     'required_without'     => 'The :attribute field is required when :values is not present.',
62     'required_without_all' => 'The :attribute field is required when none of :values are present.',
63     'same'                 => 'The :attribute and :other must match.',
64     'size'                 => [
65         'numeric' => 'The :attribute must be :size.',
66         'file'    => 'The :attribute must be :size kilobytes.',
67         'string'  => 'The :attribute must be :size characters.',
68         'array'   => 'The :attribute must contain :size items.',
69     ],
70     'string'               => 'The :attribute must be a string.',
71     'timezone'             => 'The :attribute must be a valid zone.',
72     'unique'               => 'The :attribute has already been taken.',
73     'url'                  => 'The :attribute format is invalid.',
74     'uploaded'             => 'The file could not be uploaded. The server may not accept files of this size.',
75
76     // Custom validation lines
77     'custom' => [
78         'password-confirm' => [
79             'required_with' => 'Password confirmation required',
80         ],
81     ],
82
83     // Custom validation attributes
84     'attributes' => [],
85 ];