1
0
Fork 0

Adding se translations for standard laravel components.

This commit is contained in:
Henrik Hautakoski 2022-01-08 17:25:37 +01:00
parent 43f4ac016c
commit 8a95143b8f
4 changed files with 215 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
return [
'failed' => 'Ogiltigt användarnamn ock/eller lösenord',
'password' => 'Lösenordet är felaktigt',
'throttle' => 'För många inloggningsförsök. Var vänlig försök igen om :seconds sekunder.',
];

View file

@ -0,0 +1,17 @@
<?php
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
return [
'next' => 'Nästa &raquo;',
'previous' => '&laquo; Föregående',
];

View file

@ -0,0 +1,20 @@
<?php
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
return [
'reset' => 'Lösenordet har blivit återställt!',
'sent' => 'Lösenordspåminnelse skickad!',
'throttled' => 'Vänligen vänta innan du försöker igen.',
'token' => 'Koden för lösenordsåterställning är ogiltig.',
'user' => 'Det finns ingen användare med den e-postadressen.',
];

View file

@ -0,0 +1,160 @@
<?php
/*
|--------------------------------------------------------------------------
| 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.
|
*/
return [
'accepted' => ':Attribute måste accepteras.',
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
'active_url' => ':Attribute är inte en giltig webbadress.',
'after' => ':Attribute måste vara ett datum efter :date.',
'after_or_equal' => ':Attribute måste vara ett datum senare eller samma dag som :date.',
'alpha' => ':Attribute får endast innehålla bokstäver.',
'alpha_dash' => ':Attribute får endast innehålla bokstäver, siffror och bindestreck.',
'alpha_num' => ':Attribute får endast innehålla bokstäver och siffror.',
'array' => ':Attribute måste vara en array.',
'attached' => 'Denna :attribute är redan bifogad.',
'before' => ':Attribute måste vara ett datum innan :date.',
'before_or_equal' => ':Attribute måste vara ett datum före eller samma dag som :date.',
'between' => [
'array' => ':Attribute måste innehålla mellan :min - :max objekt.',
'file' => ':Attribute måste vara mellan :min till :max kilobyte stor.',
'numeric' => ':Attribute måste vara en siffra mellan :min och :max.',
'string' => ':Attribute måste innehålla :min till :max tecken.',
],
'boolean' => ':Attribute måste vara sant eller falskt.',
'confirmed' => ':Attribute bekräftelsen matchar inte.',
'current_password' => 'The password is incorrect.',
'date' => ':Attribute är inte ett giltigt datum.',
'date_equals' => ':Attribute måste vara ett datum lika med :date.',
'date_format' => ':Attribute matchar inte formatet :format.',
'declined' => 'The :attribute must be declined.',
'declined_if' => 'The :attribute must be declined when :other is :value.',
'different' => ':Attribute och :other får inte vara lika.',
'digits' => ':Attribute måste vara :digits tecken.',
'digits_between' => ':Attribute måste vara mellan :min och :max tecken.',
'dimensions' => ':Attribute har felaktiga bilddimensioner.',
'distinct' => ':Attribute innehåller fler än en repetition av samma element.',
'email' => ':Attribute måste innehålla en korrekt e-postadress.',
'ends_with' => ':Attribute måste sluta med en av följande: :values.',
'exists' => ':Attribute är ogiltigt.',
'file' => ':Attribute måste vara en fil.',
'filled' => ':Attribute är obligatoriskt.',
'gt' => [
'array' => ':Attribute måste innehålla fler än :value objekt.',
'file' => ':Attribute måste vara större än :value kilobyte stor.',
'numeric' => ':Attribute måste vara större än :value.',
'string' => ':Attribute måste vara längre än :value tecken.',
],
'gte' => [
'array' => ':Attribute måste innehålla lika många eller fler än :value objekt.',
'file' => ':Attribute måste vara lika med eller större än :value kilobyte stor.',
'numeric' => ':Attribute måste vara lika med eller större än :value.',
'string' => ':Attribute måste vara lika med eller längre än :value tecken.',
],
'image' => ':Attribute måste vara en bild.',
'in' => ':Attribute är ogiltigt.',
'in_array' => ':Attribute finns inte i :other.',
'integer' => ':Attribute måste vara en siffra.',
'ip' => ':Attribute måste vara en giltig IP-adress.',
'ipv4' => ':Attribute måste vara en giltig IPv4-adress.',
'ipv6' => ':Attribute måste vara en giltig IPv6-adress.',
'json' => ':Attribute måste vara en giltig JSON-sträng.',
'lt' => [
'array' => ':Attribute måste innehålla färre än :value objekt.',
'file' => ':Attribute måste vara mindre än :value kilobyte stor.',
'numeric' => ':Attribute måste vara mindre än :value.',
'string' => ':Attribute måste vara kortare än :value tecken.',
],
'lte' => [
'array' => ':Attribute måste innehålla lika många eller färre än :value objekt.',
'file' => ':Attribute måste vara lika med eller mindre än :value kilobyte stor.',
'numeric' => ':Attribute måste vara lika med eller mindre än :value.',
'string' => ':Attribute måste vara lika med eller kortare än :value tecken.',
],
'max' => [
'array' => ':Attribute får inte innehålla mer än :max objekt.',
'file' => ':Attribute får max vara :max kilobyte stor.',
'numeric' => ':Attribute får inte vara större än :max.',
'string' => ':Attribute får max innehålla :max tecken.',
],
'mimes' => ':Attribute måste vara en fil av typen: :values.',
'mimetypes' => ':Attribute måste vara en fil av typen: :values.',
'min' => [
'array' => ':Attribute måste innehålla minst :min objekt.',
'file' => ':Attribute måste vara minst :min kilobyte stor.',
'numeric' => ':Attribute måste vara större än :min.',
'string' => ':Attribute måste innehålla minst :min tecken.',
],
'multiple_of' => ':attribute måste vara en multipel av :value',
'not_in' => ':Attribute är ogiltigt.',
'not_regex' => 'Formatet för :attribute är ogiltigt.',
'numeric' => ':Attribute måste vara en siffra.',
'password' => 'Lösenordet är fel.',
'present' => ':Attribute måste finnas med.',
'prohibited' => 'Fältet :attribute är förbjudet.',
'prohibited_if' => ':attribute är förbjudet när :other är :value.',
'prohibited_unless' => ':attribute är förbjudet om inte :other är :values.',
'prohibits' => 'The :attribute field prohibits :other from being present.',
'regex' => ':Attribute har ogiltigt format.',
'relatable' => 'Denna :attribute kanske inte är associerad med den här resursen.',
'required' => ':Attribute är obligatoriskt.',
'required_if' => ':Attribute är obligatoriskt när :other är :value.',
'required_unless' => ':Attribute är obligatoriskt när inte :other finns bland :values.',
'required_with' => ':Attribute är obligatoriskt när :values är ifyllt.',
'required_with_all' => ':Attribute är obligatoriskt när :values är ifyllt.',
'required_without' => ':Attribute är obligatoriskt när :values ej är ifyllt.',
'required_without_all' => ':Attribute är obligatoriskt när ingen av :values är ifyllt.',
'same' => ':Attribute och :other måste vara lika.',
'size' => [
'array' => ':Attribute måste innehålla :size objekt.',
'file' => ':Attribute får endast vara :size kilobyte stor.',
'numeric' => ':Attribute måste vara :size.',
'string' => ':Attribute måste innehålla :size tecken.',
],
'starts_with' => ':Attribute måste börja med en av följande: :values',
'string' => ':Attribute måste vara en sträng.',
'timezone' => ':Attribute måste vara en giltig tidszon.',
'unique' => ':Attribute används redan.',
'uploaded' => ':Attribute kunde inte laddas upp.',
'url' => ':Attribute har ett ogiltigt format.',
'uuid' => ':Attribute måste vara ett giltigt UUID.',
/*
|--------------------------------------------------------------------------
| 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 our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [],
];