]> BookStack Code Mirror - bookstack/blob - resources/lang/sv/validation.php
Changes as per code review, and fixes failing test cases.
[bookstack] / resources / lang / sv / validation.php
1 <?php
2
3 return [
4
5     /*
6     |--------------------------------------------------------------------------
7     | Validation Language Lines
8     |--------------------------------------------------------------------------
9     |
10     | The following language lines contain the default error messages used by
11     | the validator class. Some of these rules have multiple versions such
12     | as the size rules. Feel free to tweak each of these messages here.
13     |
14     */
15
16     'accepted'             => ':attribute måste godkännas.',
17     'active_url'           => ':attribute är inte en giltig URL.',
18     'after'                => ':attribute måste vara efter :date.',
19     'alpha'                => ':attribute får bara innehålla bokstäver.',
20     'alpha_dash'           => ':attribute får bara innehålla bokstäver, siffror och bindestreck.',
21     'alpha_num'            => ':attribute får bara innehålla bokstäver och siffror.',
22     'array'                => ':attribute måste vara en array.',
23     'before'               => ':attribute måste vara före :date.',
24     'between'              => [
25         'numeric' => ':attribute måste vara mellan :min och :max.',
26         'file'    => ':attribute måste vara mellan :min och :max kilobyte stor.',
27         'string'  => ':attribute måste vara mellan :min och :max tecken.',
28         'array'   => ':attribute måste innehålla mellan :min och :max poster.',
29     ],
30     'boolean'              => ':attribute måste vara sant eller falskt.',
31     'confirmed'            => 'Bekräftelsen av :attribute stämmer inte.',
32     'date'                 => ':attribute är inte ett giltigt datum.',
33     'date_format'          => ':attribute matchar inte formatet :format.',
34     'different'            => ':attribute och :other måste vara olika.',
35     'digits'               => ':attribute måste vara :digits siffror.',
36     'digits_between'       => ':attribute måste vara mellan :min och :max siffror.',
37     'email'                => ':attribute måste vara en giltig e-postadress.',
38     'filled'               => ':attribute är obligatoriskt.',
39     'exists'               => 'Valt värde för :attribute är ogiltigt.',
40     'image'                => ':attribute måste vara en bild.',
41     'in'                   => 'Vald :attribute är ogiltigt.',
42     'integer'              => ':attribute måste vara en integer.',
43     'ip'                   => ':attribute måste vara en giltig IP-adress.',
44     'max'                  => [
45         'numeric' => ':attribute får inte vara större än :max.',
46         'file'    => ':attribute får inte vara större än :max kilobyte.',
47         'string'  => ':attribute får inte vara längre än :max tecken.',
48         'array'   => ':attribute får inte ha fler än :max poster.',
49     ],
50     'mimes'                => ':attribute måste vara en fil av typen: :values.',
51     'min'                  => [
52         'numeric' => ':attribute måste vara minst :min.',
53         'file'    => ':attribute måste vara minst :min kilobyte stor.',
54         'string'  => ':attribute måste vara minst :min tecken.',
55         'array'   => ':attribute måste ha minst :min poster.',
56     ],
57     'not_in'               => 'Vald :attribute är inte giltig',
58     'numeric'              => ':attribute måste vara ett nummer.',
59     'regex'                => ':attribute har ett ogiltigt format.',
60     'required'             => ':attribute är obligatoriskt.',
61     'required_if'          => ':attribute är obligatoriskt när :other är :value.',
62     'required_with'        => ':attribute är obligatoriskt när :values finns.',
63     'required_with_all'    => ':attribute är obligatoriskt när :values finns.',
64     'required_without'     => ':attribute är obligatoriskt när :values inte finns.',
65     'required_without_all' => ':attribute är obligatirskt när ingen av :values finns.',
66     'same'                 => ':attribute och :other måste stämma överens.',
67     'size'                 => [
68         'numeric' => ':attribute måste vara :size.',
69         'file'    => ':attribute måste vara :size kilobyte.',
70         'string'  => ':attribute måste vara :size tecken.',
71         'array'   => ':attribute måste innehålla :size poster.',
72     ],
73     'string'               => ':attribute måste vara en sträng.',
74     'timezone'             => ':attribute måste vara en giltig tidszon.',
75     'unique'               => ':attribute är upptaget',
76     'url'                  => 'Formatet på :attribute är ogiltigt.',
77
78     /*
79     |--------------------------------------------------------------------------
80     | Custom Validation Language Lines
81     |--------------------------------------------------------------------------
82     |
83     | Here you may specify custom validation messages for attributes using the
84     | convention "attribute.rule" to name the lines. This makes it quick to
85     | specify a specific custom language line for a given attribute rule.
86     |
87     */
88
89     'custom' => [
90         'password-confirm' => [
91             'required_with' => 'Lösenordet måste bekräftas',
92         ],
93     ],
94
95     /*
96     |--------------------------------------------------------------------------
97     | Custom Validation Attributes
98     |--------------------------------------------------------------------------
99     |
100     | The following language lines are used to swap attribute place-holders
101     | with something more reader friendly such as E-Mail Address instead
102     | of "email". This simply helps us make messages a little cleaner.
103     |
104     */
105
106     'attributes' => [],
107
108 ];