109 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			109 lines
		
	
	
		
			5.4 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 måste godkännas.',
							 | 
						||
| 
								 | 
							
								    'active_url'           => ':attribute är inte en giltig URL.',
							 | 
						||
| 
								 | 
							
								    'after'                => ':attribute måste vara efter :date.',
							 | 
						||
| 
								 | 
							
								    'alpha'                => ':attribute får bara innehålla bokstäver.',
							 | 
						||
| 
								 | 
							
								    'alpha_dash'           => ':attribute får bara innehålla bokstäver, siffror och bindestreck.',
							 | 
						||
| 
								 | 
							
								    'alpha_num'            => ':attribute får bara innehålla bokstäver och siffror.',
							 | 
						||
| 
								 | 
							
								    'array'                => ':attribute måste vara en array.',
							 | 
						||
| 
								 | 
							
								    'before'               => ':attribute måste vara före :date.',
							 | 
						||
| 
								 | 
							
								    'between'              => [
							 | 
						||
| 
								 | 
							
								        'numeric' => ':attribute måste vara mellan :min och :max.',
							 | 
						||
| 
								 | 
							
								        'file'    => ':attribute måste vara mellan :min och :max kilobyte stor.',
							 | 
						||
| 
								 | 
							
								        'string'  => ':attribute måste vara mellan :min och :max tecken.',
							 | 
						||
| 
								 | 
							
								        'array'   => ':attribute måste innehålla mellan :min och :max poster.',
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    'boolean'              => ':attribute måste vara sant eller falskt.',
							 | 
						||
| 
								 | 
							
								    'confirmed'            => 'Bekräftelsen av :attribute stämmer inte.',
							 | 
						||
| 
								 | 
							
								    'date'                 => ':attribute är inte ett giltigt datum.',
							 | 
						||
| 
								 | 
							
								    'date_format'          => ':attribute matchar inte formatet :format.',
							 | 
						||
| 
								 | 
							
								    'different'            => ':attribute och :other måste vara olika.',
							 | 
						||
| 
								 | 
							
								    'digits'               => ':attribute måste vara :digits siffror.',
							 | 
						||
| 
								 | 
							
								    'digits_between'       => ':attribute måste vara mellan :min och :max siffror.',
							 | 
						||
| 
								 | 
							
								    'email'                => ':attribute måste vara en giltig e-postadress.',
							 | 
						||
| 
								 | 
							
								    'filled'               => ':attribute är obligatoriskt.',
							 | 
						||
| 
								 | 
							
								    'exists'               => 'Valt värde för :attribute är ogiltigt.',
							 | 
						||
| 
								 | 
							
								    'image'                => ':attribute måste vara en bild.',
							 | 
						||
| 
								 | 
							
								    'in'                   => 'Vald :attribute är ogiltigt.',
							 | 
						||
| 
								 | 
							
								    'integer'              => ':attribute måste vara en integer.',
							 | 
						||
| 
								 | 
							
								    'ip'                   => ':attribute måste vara en giltig IP-adress.',
							 | 
						||
| 
								 | 
							
								    'max'                  => [
							 | 
						||
| 
								 | 
							
								        'numeric' => ':attribute får inte vara större än :max.',
							 | 
						||
| 
								 | 
							
								        'file'    => ':attribute får inte vara större än :max kilobyte.',
							 | 
						||
| 
								 | 
							
								        'string'  => ':attribute får inte vara längre än :max tecken.',
							 | 
						||
| 
								 | 
							
								        'array'   => ':attribute får inte ha fler än :max poster.',
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    'mimes'                => ':attribute måste vara en fil av typen: :values.',
							 | 
						||
| 
								 | 
							
								    'min'                  => [
							 | 
						||
| 
								 | 
							
								        'numeric' => ':attribute måste vara minst :min.',
							 | 
						||
| 
								 | 
							
								        'file'    => ':attribute måste vara minst :min kilobyte stor.',
							 | 
						||
| 
								 | 
							
								        'string'  => ':attribute måste vara minst :min tecken.',
							 | 
						||
| 
								 | 
							
								        'array'   => ':attribute måste ha minst :min poster.',
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    'not_in'               => 'Vald :attribute är inte giltig',
							 | 
						||
| 
								 | 
							
								    'numeric'              => ':attribute måste vara ett nummer.',
							 | 
						||
| 
								 | 
							
								    'regex'                => ':attribute har ett ogiltigt format.',
							 | 
						||
| 
								 | 
							
								    'required'             => ':attribute är obligatoriskt.',
							 | 
						||
| 
								 | 
							
								    'required_if'          => ':attribute är obligatoriskt när :other är :value.',
							 | 
						||
| 
								 | 
							
								    'required_with'        => ':attribute är obligatoriskt när :values finns.',
							 | 
						||
| 
								 | 
							
								    'required_with_all'    => ':attribute är obligatoriskt när :values finns.',
							 | 
						||
| 
								 | 
							
								    'required_without'     => ':attribute är obligatoriskt när :values inte finns.',
							 | 
						||
| 
								 | 
							
								    'required_without_all' => ':attribute är obligatirskt när ingen av :values finns.',
							 | 
						||
| 
								 | 
							
								    'same'                 => ':attribute och :other måste stämma överens.',
							 | 
						||
| 
								 | 
							
								    'size'                 => [
							 | 
						||
| 
								 | 
							
								        'numeric' => ':attribute måste vara :size.',
							 | 
						||
| 
								 | 
							
								        'file'    => ':attribute måste vara :size kilobyte.',
							 | 
						||
| 
								 | 
							
								        'string'  => ':attribute måste vara :size tecken.',
							 | 
						||
| 
								 | 
							
								        'array'   => ':attribute måste innehålla :size poster.',
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								    'string'               => ':attribute måste vara en sträng.',
							 | 
						||
| 
								 | 
							
								    'timezone'             => ':attribute måste vara en giltig tidszon.',
							 | 
						||
| 
								 | 
							
								    'unique'               => ':attribute är upptaget',
							 | 
						||
| 
								 | 
							
								    'url'                  => 'Formatet på :attribute är ogiltigt.',
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /*
							 | 
						||
| 
								 | 
							
								    |--------------------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								    | 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' => [
							 | 
						||
| 
								 | 
							
								        'password-confirm' => [
							 | 
						||
| 
								 | 
							
								            'required_with' => 'Lösenordet måste bekräftas',
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								    ],
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /*
							 | 
						||
| 
								 | 
							
								    |--------------------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								    | 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' => [],
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								];
							 |