124 lines
		
	
	
		
			7.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			124 lines
		
	
	
		
			7.1 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'             => 'El camp :attribute ha de ser acceptat.',
 | |
|     'active_url'           => 'El camp :attribute no és una URL vàlid.',
 | |
|     'after'                => 'El camp :attribute ha de ser una data posterior a :date.',
 | |
|     'after_or_equal'       => 'El camp :attribute ha de ser una data posterior o igual a :date.',
 | |
|     'alpha'                => 'El camp :attribute només pot contenir lletres.',
 | |
|     'alpha_dash'           => 'El camp :attribute només pot contenir lletres, números i guions.',
 | |
|     'alpha_num'            => 'El camp :attribute només pot contenir lletres i números.',
 | |
|     'array'                => 'El camp :attribute ha de ser una matriu.',
 | |
|     'before'               => 'El camp :attribute ha de ser una data anterior a :date.',
 | |
|     'before_or_equal'      => 'El camp :attribute ha de ser una data anterior o igual a :date.',
 | |
|     'between'              => [
 | |
|         'numeric' => 'El camp :attribute ha d\'estar entre :min i :max.',
 | |
|         'file'    => 'El camp :attribute ha de tenir entre :min i :max dígits.',
 | |
|         'string'  => 'El camp :attribute ha de tenir entre :min i :max caràcters.',
 | |
|         'array'   => 'El camp :attribute ha de tenir entre :min i :max ítems.',
 | |
|     ],
 | |
|     'boolean'              => 'El camp :attribute ha de ser verdader o fals.',
 | |
|     'confirmed'            => 'La confirmació de :attribute no coincideix.',
 | |
|     'date'                 => 'El camp :attribute no és una data vàlida.',
 | |
|     'date_format'          => 'El camp :attribute no concorda amb el format :format.',
 | |
|     'different'            => 'Els camps :attribute i :other han de ser diferents.',
 | |
|     'digits'               => 'El camp :attribute ha de tenir :digits dígits.',
 | |
|     'digits_between'       => 'El camp :attribute ha de tenir entre :min i :max dígits.',
 | |
|     'dimensions'           => 'Les dimensions de la imatge :attribute no són vàlides.',
 | |
|     'distinct'             => 'El camp :attribute té un valor duplicat.',
 | |
|     'email'                => 'El camp :attribute no és un <strong>correu electrònic</strong> vàlid.',
 | |
|     'ends_with'            => 'El camp :attribute ha d\'acabar amb un dels valors següents: :values.',
 | |
|     'exists'               => 'El camp :attribute seleccionat és invàlid.',
 | |
|     'file'                 => 'El camp :attribute ha de ser un <strong>arxiu</strong>.',
 | |
|     'filled'               => 'El camp :attribute és <strong>obligatori</strong>.',
 | |
|     'image'                => 'El camp :attribute ha de ser una <strong>imatge</strong>.',
 | |
|     'in'                   => 'El camp :attribute seleccionat és invàlid',
 | |
|     'in_array'             => 'El camp :attribute no existeix dins de :other.',
 | |
|     'integer'              => 'El camp :attribute ha de ser un nombre <strong>enter</strong>.',
 | |
|     'ip'                   => 'El camp :attribute ha de ser una adreça IP vàlida.',
 | |
|     'json'                 => 'El camp :attribute ha de ser una cadena JSON vàlida.',
 | |
|     'max'                  => [
 | |
|         'numeric' => 'El camp :attribute no pot ser més gran de :max.',
 | |
|         'file'    => 'El camp :attribute no pot ser més gran de :max kilobytes.',
 | |
|         'string'  => 'El camp :attribute no pot tenir més de :max caràcters.',
 | |
|         'array'   => 'El camp :attribute no pot tenir més de :max elements.',
 | |
|     ],
 | |
|     'mimes'                => 'El camp :attribute ha de ser un arxiu amb format: :values.',
 | |
|     'mimetypes'            => 'El camp :attribute ha de ser un arxiu amb format: :values.',
 | |
|     'min'                  => [
 | |
|         'numeric' => 'La mida de :attribute ha de ser d\'almenys :min.',
 | |
|         'file'    => 'La mida de :attribute ha de ser d\'almenys :min kilobytes.',
 | |
|         'string'  => 'El camp :attribute ha de contenir almenys :min caràcters.',
 | |
|         'array'   => 'El camp :attribute ha de tenir almenys :min elements.',
 | |
|     ],
 | |
|     'not_in'               => 'El camp :attribute seleccionat és invàlid.',
 | |
|     'numeric'              => 'El camp :attribute ha de ser numèric.',
 | |
|     'present'              => 'El camp :attribute ha d\'existir.',
 | |
|     'regex'                => 'El format de :attribute és invàlid.',
 | |
|     'required'             => 'El camp :attribute és <strong>obligatori</strong>.',
 | |
|     'required_if'          => 'El camp :attribute és obligatori quan :other és :value.',
 | |
|     'required_unless'      => 'El camp :attribute és obligatori a no ser que :other sigui a :values.',
 | |
|     'required_with'        => 'El camp :attribute és obligatori quan hi ha :values.',
 | |
|     'required_with_all'    => 'El camp :attribute és obligatori quan hi ha :values.',
 | |
|     'required_without'     => 'El camp :attribute és obligatori quan no hi ha :values.',
 | |
|     'required_without_all' => 'El camp :attribute és obligatori quan no hi ha cap valor dels següents: :values.',
 | |
|     'same'                 => ':attribute i :other han de coincidir.',
 | |
|     'size'                 => [
 | |
|         'numeric' => 'El tamany de :attribute ha de ser :size.',
 | |
|         'file'    => 'El tamany de :attribute ha de ser :size kilobytes.',
 | |
|         'string'  => ':attribute ha de contenir :size caràcters.',
 | |
|         'array'   => ':attribute ha de contenir :size ítems.',
 | |
|     ],
 | |
|     'string'               => 'El camp :attribute ha de ser una cadena.',
 | |
|     'timezone'             => 'El camp :attribute ha de ser una zona vàlida.',
 | |
|     'unique'               => ':attribute ja està registrat i no es pot repetir.',
 | |
|     'uploaded'             => ':attribute ha fallat al pujar.',
 | |
|     'url'                  => ':attribute no és una adreça web vàlida.',
 | |
| 
 | |
|     /*
 | |
|     |--------------------------------------------------------------------------
 | |
|     | 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',
 | |
|         ],
 | |
|         'invalid_currency'      => 'El camp :attribute és invàlid.',
 | |
|         'invalid_amount'        => 'La quantitat :attribute no és vàlida.',
 | |
|         'invalid_extension'     => 'L\'extensió del fitxer no és vàlida.',
 | |
|     ],
 | |
| 
 | |
|     /*
 | |
|     |--------------------------------------------------------------------------
 | |
|     | 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' => [],
 | |
| 
 | |
| ];
 |