mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 07:23:17 +00:00
123 lines
6.3 KiB
PHP
123 lines
6.3 KiB
PHP
|
<?php
|
||
|
|
||
|
return [
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Validation Language Lines
|
||
|
|--------------------------------------------------------------------------
|
||
|
|
|
||
|
| The following language lines contain the default error messages used by
|
||
|
| the validator class. Some of these rules have multiple versions such
|
||
|
| as the size rules. Feel free to tweak each of these messages here.
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
'accepted' => ':attribute skal accepteres.',
|
||
|
'active_url' => ':attribute er ikke en gyldig URL.',
|
||
|
'after' => ':attribute skal være en dato efter :date.',
|
||
|
'after_or_equal' => ':attribute skal være en dato ens med, eller efter :date.',
|
||
|
'alpha' => ':attribute må kun indeholde bogstaver.',
|
||
|
'alpha_dash' => ':attribute må kun indeholde bogstaver, tal og bindestreger.',
|
||
|
'alpha_num' => ':attribute må kun indeholde bogstaver og tal.',
|
||
|
'array' => ':attribute skal være en array.',
|
||
|
'before' => ':attribute skal være en dato før :date.',
|
||
|
'before_or_equal' => ':attribute skal være en dato før, eller det samme som :date.',
|
||
|
'between' => [
|
||
|
'numeric' => ':attribute skal være mellem :min og :max.',
|
||
|
'file' => ':attribute skal være mellem :min og :max kilobytes.',
|
||
|
'string' => ':attribute skal være mellem :min og :max tegn.',
|
||
|
'array' => ':attribute skal være mellem :min og :max elementer.',
|
||
|
],
|
||
|
'boolean' => ':attribute felt skal være sandt eller falsk.',
|
||
|
'confirmed' => ':attribute bekræftelse matcher ikke.',
|
||
|
'date' => ':attribute er ikke en gyldig dato.',
|
||
|
'date_format' => ':attribute matcher ikke formatet :format.',
|
||
|
'different' => ':attribute og :other skal være forskellige.',
|
||
|
'digits' => ':attribute must be :digits digits.',
|
||
|
'digits_between' => ':attribute must be between :min and :max digits.',
|
||
|
'dimensions' => ':attribute has invalid image dimensions.',
|
||
|
'distinct' => ':attribute field has a duplicate value.',
|
||
|
'email' => ':attribute must be a valid email address.',
|
||
|
'exists' => 'The selected :attribute is invalid.',
|
||
|
'file' => ':attribute must be a file.',
|
||
|
'filled' => ':attribute field must have a value.',
|
||
|
'image' => ':attribute must be an image.',
|
||
|
'in' => 'The selected :attribute is invalid.',
|
||
|
'in_array' => ':attribute field does not exist in :other.',
|
||
|
'integer' => ':attribute must be an integer.',
|
||
|
'ip' => ':attribute must be a valid IP address.',
|
||
|
'ipv4' => ':attribute must be a valid IPv4 address.',
|
||
|
'ipv6' => ':attribute must be a valid IPv6 address.',
|
||
|
'json' => ':attribute must be a valid JSON string.',
|
||
|
'max' => [
|
||
|
'numeric' => ':attribute may not be greater than :max.',
|
||
|
'file' => ':attribute may not be greater than :max kilobytes.',
|
||
|
'string' => ':attribute may not be greater than :max characters.',
|
||
|
'array' => ':attribute may not have more than :max items.',
|
||
|
],
|
||
|
'mimes' => ':attribute must be a file of type: :values.',
|
||
|
'mimetypes' => ':attribute must be a file of type: :values.',
|
||
|
'min' => [
|
||
|
'numeric' => ':attribute must be at least :min.',
|
||
|
'file' => ':attribute must be at least :min kilobytes.',
|
||
|
'string' => ':attribute must be at least :min characters.',
|
||
|
'array' => ':attribute must have at least :min items.',
|
||
|
],
|
||
|
'not_in' => 'The selected :attribute is invalid.',
|
||
|
'not_regex' => ':attribute format is invalid.',
|
||
|
'numeric' => ':attribute must be a number.',
|
||
|
'present' => ':attribute field must be present.',
|
||
|
'regex' => ':attribute format is invalid.',
|
||
|
'required' => ':attribute field is required.',
|
||
|
'required_if' => ':attribute field is required when :other is :value.',
|
||
|
'required_unless' => ':attribute field is required unless :other is in :values.',
|
||
|
'required_with' => ':attribute field is required when :values is present.',
|
||
|
'required_with_all' => ':attribute field is required when :values is present.',
|
||
|
'required_without' => ':attribute field is required when :values is not present.',
|
||
|
'required_without_all' => ':attribute field is required when none of :values are present.',
|
||
|
'same' => ':attribute and :other must match.',
|
||
|
'size' => [
|
||
|
'numeric' => ':attribute must be :size.',
|
||
|
'file' => ':attribute must be :size kilobytes.',
|
||
|
'string' => ':attribute must be :size characters.',
|
||
|
'array' => ':attribute must contain :size items.',
|
||
|
],
|
||
|
'string' => ':attribute must be a string.',
|
||
|
'timezone' => ':attribute must be a valid zone.',
|
||
|
'unique' => ':attribute has already been taken.',
|
||
|
'uploaded' => ':attribute failed to upload.',
|
||
|
'url' => ':attribute format is invalid.',
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Custom Validation Language Lines
|
||
|
|--------------------------------------------------------------------------
|
||
|
|
|
||
|
| Here you may specify custom validation messages for attributes using the
|
||
|
| convention "attribute.rule" to name the lines. This makes it quick to
|
||
|
| specify a specific custom language line for a given attribute rule.
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
'custom' => [
|
||
|
'attribute-name' => [
|
||
|
'rule-name' => 'custom-message',
|
||
|
],
|
||
|
],
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Custom Validation Attributes
|
||
|
|--------------------------------------------------------------------------
|
||
|
|
|
||
|
| The following language lines are used to swap attribute place-holders
|
||
|
| with something more reader friendly such as E-Mail Address instead
|
||
|
| of "email". This simply helps us make messages a little cleaner.
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
'attributes' => [],
|
||
|
|
||
|
];
|