From f1e525953cd58c8220eada0e2a12cb60ac9ad153 Mon Sep 17 00:00:00 2001 From: tanthammar Date: Mon, 12 Apr 2021 17:41:48 +0200 Subject: [PATCH 1/5] start sv --- packages/forms/resources/lang/sv/fields.php | 139 ++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 packages/forms/resources/lang/sv/fields.php diff --git a/packages/forms/resources/lang/sv/fields.php b/packages/forms/resources/lang/sv/fields.php new file mode 100644 index 00000000000..94639d33c02 --- /dev/null +++ b/packages/forms/resources/lang/sv/fields.php @@ -0,0 +1,139 @@ + [ + + 'abbreviatedDays' => [ + 'friday' => 'Fre', + 'monday' => 'Mån', + 'saturday' => 'Lör', + 'sunday' => 'Sön', + 'thursday' => 'Tor', + 'tuesday' => 'Tis', + 'wednesday' => 'Ons', + ], + + 'months' => [ + 'april' => 'April', + 'august' => 'Augusti', + 'december' => 'December', + 'february' => 'Februari', + 'january' => 'Januari', + 'july' => 'Juli', + 'june' => 'Juni', + 'march' => 'Mars', + 'may' => 'Maj', + 'november' => 'November', + 'october' => 'Oktober', + 'september' => 'September', + ], + + ], + + 'keyValue' => [ + + 'buttons' => [ + + 'add' => [ + 'label' => 'Add Row', + ], + + 'delete' => [ + 'label' => 'Delete Row', + ], + + 'sort' => [ + 'label' => 'Hold to Sort', + ], + + ], + + 'fields' => [ + + 'key' => [ + 'label' => 'Key', + 'placeholder' => 'Enter a key...', + ], + + 'value' => [ + 'label' => 'Value', + 'placeholder' => 'Enter a value...', + ], + + ], + + ], + + 'markdownEditor' => [ + + 'toolbarButtons' => [ + 'attachFiles' => 'Attach Files', + 'bold' => 'Bold', + 'bullet' => 'Bullets', + 'code' => 'Code', + 'italic' => 'Italic', + 'link' => 'Link', + 'number' => 'Numbers', + 'preview' => 'Preview', + 'strike' => 'Strikethrough', + 'write' => 'Write', + ], + + ], + + 'multiSelect' => [ + 'emptyOptionsMessage' => 'No options to choose from.', + 'noSearchResultsMessage' => 'No options match your search.', + 'placeholder' => 'Select an option', + ], + + 'richEditor' => [ + + 'dialogs' => [ + + 'link' => [ + + 'buttons' => [ + 'link' => 'Link', + 'unlink' => 'Unlink', + ], + + 'label' => 'URL', + + 'placeholder' => 'Enter a URL', + + ], + + ], + + 'toolbarButtons' => [ + 'attachFiles' => 'Attach Files', + 'bold' => 'Bold', + 'bullet' => 'Bullets', + 'code' => 'Code', + 'heading' => 'Heading', + 'italic' => 'Italic', + 'link' => 'Link', + 'number' => 'Numbers', + 'quote' => 'Quote', + 'redo' => 'Redo', + 'strike' => 'Strikethrough', + 'subheading' => 'Subheading', + 'title' => 'Title', + 'undo' => 'Undo', + ], + + ], + + 'select' => [ + 'emptyOptionsMessage' => 'Start typing to search...', + 'noSearchResultsMessage' => 'No options match your search.', + 'placeholder' => 'Select an option', + ], + + 'tags' => [ + 'placeholder' => 'New tag', + ], + +]; From bb5ee60ee4800c7048a13e854264fc7ea983f526 Mon Sep 17 00:00:00 2001 From: tanthammar Date: Mon, 12 Apr 2021 17:43:02 +0200 Subject: [PATCH 2/5] forms sv complete --- packages/forms/resources/lang/sv/fields.php | 82 ++++++++++----------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/packages/forms/resources/lang/sv/fields.php b/packages/forms/resources/lang/sv/fields.php index 94639d33c02..f9567505428 100644 --- a/packages/forms/resources/lang/sv/fields.php +++ b/packages/forms/resources/lang/sv/fields.php @@ -36,15 +36,15 @@ 'buttons' => [ 'add' => [ - 'label' => 'Add Row', + 'label' => 'Ny Rad', ], 'delete' => [ - 'label' => 'Delete Row', + 'label' => 'Radera Rad', ], 'sort' => [ - 'label' => 'Hold to Sort', + 'label' => 'Tryck, ordna', ], ], @@ -52,13 +52,13 @@ 'fields' => [ 'key' => [ - 'label' => 'Key', - 'placeholder' => 'Enter a key...', + 'label' => 'Namn', + 'placeholder' => 'Ange namn...', ], 'value' => [ - 'label' => 'Value', - 'placeholder' => 'Enter a value...', + 'label' => 'Värde', + 'placeholder' => 'Ange ett värde...', ], ], @@ -68,24 +68,24 @@ 'markdownEditor' => [ 'toolbarButtons' => [ - 'attachFiles' => 'Attach Files', - 'bold' => 'Bold', - 'bullet' => 'Bullets', - 'code' => 'Code', - 'italic' => 'Italic', - 'link' => 'Link', - 'number' => 'Numbers', - 'preview' => 'Preview', - 'strike' => 'Strikethrough', - 'write' => 'Write', + 'attachFiles' => 'Lägg till filer', + 'bold' => 'Fet', + 'bullet' => 'Lista', + 'code' => 'Kod', + 'italic' => 'Kursiv', + 'link' => 'Länk', + 'number' => 'Nummer', + 'preview' => 'Förhandsvisa', + 'strike' => 'Överstruken', + 'write' => 'Skriv', ], ], 'multiSelect' => [ - 'emptyOptionsMessage' => 'No options to choose from.', - 'noSearchResultsMessage' => 'No options match your search.', - 'placeholder' => 'Select an option', + 'emptyOptionsMessage' => 'Finns inga alternativ.', + 'noSearchResultsMessage' => 'Hittade inget som matchade din sökning.', + 'placeholder' => 'Välj ett alternativ', ], 'richEditor' => [ @@ -95,45 +95,45 @@ 'link' => [ 'buttons' => [ - 'link' => 'Link', - 'unlink' => 'Unlink', + 'link' => 'Länka', + 'unlink' => 'Radera länk', ], 'label' => 'URL', - 'placeholder' => 'Enter a URL', + 'placeholder' => 'Ange en URL', ], ], 'toolbarButtons' => [ - 'attachFiles' => 'Attach Files', - 'bold' => 'Bold', - 'bullet' => 'Bullets', - 'code' => 'Code', - 'heading' => 'Heading', - 'italic' => 'Italic', - 'link' => 'Link', - 'number' => 'Numbers', - 'quote' => 'Quote', - 'redo' => 'Redo', - 'strike' => 'Strikethrough', - 'subheading' => 'Subheading', - 'title' => 'Title', - 'undo' => 'Undo', + 'attachFiles' => 'Lägg till filer', + 'bold' => 'Fet', + 'bullet' => 'Lista', + 'code' => 'Kod', + 'heading' => 'Rubrik', + 'italic' => 'Kursiv', + 'link' => 'Länk', + 'number' => 'Nummer', + 'quote' => 'Citat', + 'redo' => 'Igen', + 'strike' => 'Överstruken', + 'subheading' => 'Underrubrik', + 'title' => 'Titel', + 'undo' => 'Ångra', ], ], 'select' => [ - 'emptyOptionsMessage' => 'Start typing to search...', - 'noSearchResultsMessage' => 'No options match your search.', - 'placeholder' => 'Select an option', + 'emptyOptionsMessage' => 'Börja skriva för att söka...', + 'noSearchResultsMessage' => 'Hittar inget som matchar din sökning.', + 'placeholder' => 'Välj ett alternativ', ], 'tags' => [ - 'placeholder' => 'New tag', + 'placeholder' => 'Ny tagg', ], ]; From 406a1a180e3d7357697e04311ba7b2b89a1ab0f9 Mon Sep 17 00:00:00 2001 From: tanthammar Date: Mon, 12 Apr 2021 17:54:54 +0200 Subject: [PATCH 3/5] swedish table --- .../tables/resources/lang/sv/pagination.php | 20 +++++++ packages/tables/resources/lang/sv/table.php | 57 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 packages/tables/resources/lang/sv/pagination.php create mode 100644 packages/tables/resources/lang/sv/table.php diff --git a/packages/tables/resources/lang/sv/pagination.php b/packages/tables/resources/lang/sv/pagination.php new file mode 100644 index 00000000000..989fee2fedc --- /dev/null +++ b/packages/tables/resources/lang/sv/pagination.php @@ -0,0 +1,20 @@ + [ + 'goToPage' => 'Gå till :page', + 'next' => 'Nästa', + 'previous' => 'Föregående', + ], + + 'label' => 'Pagineringsmeny', + + 'overview' => [ + 'Visar från', + 'till', + 'av', + 'totalt', + ], + +]; diff --git a/packages/tables/resources/lang/sv/table.php b/packages/tables/resources/lang/sv/table.php new file mode 100644 index 00000000000..00ecd8672dd --- /dev/null +++ b/packages/tables/resources/lang/sv/table.php @@ -0,0 +1,57 @@ + [ + + 'button' => [ + 'label' => 'Radera valda', + ], + + 'modal' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'delete' => [ + 'label' => 'Radera valda', + ], + + ], + + 'description' => 'Är du säker på att du vill radera de valda raderna? Det går inte att ångra!', + + 'heading' => 'Radera de valda raderna?', + + ], + + ], + + 'filter' => [ + 'placeholder' => 'Filter', + ], + + 'messages' => [ + 'noRecords' => 'Finns inga rader', + ], + + 'pagination' => [ + + 'fields' => [ + + 'recordsPerPage' => [ + 'label' => 'per sida', + ], + + ], + + ], + + 'search' => [ + 'placeholder' => 'Sök', + ], + +]; From 8888337fdbb9db7f9d43e11395e83c68540d0998 Mon Sep 17 00:00:00 2001 From: tanthammar Date: Mon, 12 Apr 2021 18:40:22 +0200 Subject: [PATCH 4/5] main app swedish --- resources/lang/sv/auth/login.php | 37 +++++ resources/lang/sv/auth/logout.php | 9 ++ resources/lang/sv/auth/request-password.php | 36 +++++ resources/lang/sv/auth/reset-password.php | 41 ++++++ resources/lang/sv/dashboard.php | 41 ++++++ resources/lang/sv/edit-account.php | 19 +++ resources/lang/sv/nav.php | 17 +++ .../lang/sv/resources/pages/create-record.php | 25 ++++ .../lang/sv/resources/pages/edit-record.php | 49 +++++++ .../lang/sv/resources/pages/list-records.php | 25 ++++ .../lang/sv/resources/relation-manager.php | 131 ++++++++++++++++++ resources/lang/sv/resources/user-resource.php | 84 +++++++++++ 12 files changed, 514 insertions(+) create mode 100644 resources/lang/sv/auth/login.php create mode 100644 resources/lang/sv/auth/logout.php create mode 100644 resources/lang/sv/auth/request-password.php create mode 100644 resources/lang/sv/auth/reset-password.php create mode 100644 resources/lang/sv/dashboard.php create mode 100644 resources/lang/sv/edit-account.php create mode 100644 resources/lang/sv/nav.php create mode 100644 resources/lang/sv/resources/pages/create-record.php create mode 100644 resources/lang/sv/resources/pages/edit-record.php create mode 100644 resources/lang/sv/resources/pages/list-records.php create mode 100644 resources/lang/sv/resources/relation-manager.php create mode 100644 resources/lang/sv/resources/user-resource.php diff --git a/resources/lang/sv/auth/login.php b/resources/lang/sv/auth/login.php new file mode 100644 index 00000000000..05ae98c67bd --- /dev/null +++ b/resources/lang/sv/auth/login.php @@ -0,0 +1,37 @@ + [ + + 'submit' => [ + 'label' => 'Logga in', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => 'Email', + ], + + 'password' => [ + 'hint' => 'Glömt ditt lösenord?', + 'label' => 'Lösenord', + ], + + 'remember' => [ + 'label' => 'Kom ihåg mig', + ], + + ], + + 'messages' => [ + 'failed' => 'Angivna inloggningsuppgifter matchar inte någon användare.', + 'throttled' => 'För många inloggningsförsök. Vänligen försök igen om :seconds sekunder.', + ], + + 'title' => 'Logga in på ditt konto', + +]; diff --git a/resources/lang/sv/auth/logout.php b/resources/lang/sv/auth/logout.php new file mode 100644 index 00000000000..b9c6487f397 --- /dev/null +++ b/resources/lang/sv/auth/logout.php @@ -0,0 +1,9 @@ + [ + 'label' => 'Logga ut', + ], + +]; diff --git a/resources/lang/sv/auth/request-password.php b/resources/lang/sv/auth/request-password.php new file mode 100644 index 00000000000..7554270f243 --- /dev/null +++ b/resources/lang/sv/auth/request-password.php @@ -0,0 +1,36 @@ + [ + + 'submit' => [ + 'label' => 'Skicka länk för ändring av lösenord', + ], + + ], + + 'form' => [ + + 'email' => [ + 'hint' => 'Tillbaka till inloggning', + 'label' => 'Email', + ], + + ], + + 'messages' => [ + + 'throttled' => 'För många inloggningsförsök. Vänligen försök igen om :seconds sekunder.', + + 'passwords' => [ + 'sent' => 'Vi har mejlat dig en länk för att ändra ditt lösenord!', + 'throttled' => 'Vänligen vänta före du försöker igen.', + 'user' => 'Vi kan inte hitta någon användare med angiven mejladress.', + ], + + ], + + 'title' => 'Ändring av lösenord', + +]; diff --git a/resources/lang/sv/auth/reset-password.php b/resources/lang/sv/auth/reset-password.php new file mode 100644 index 00000000000..2641be5b979 --- /dev/null +++ b/resources/lang/sv/auth/reset-password.php @@ -0,0 +1,41 @@ + [ + + 'submit' => [ + 'label' => 'Uppdatera lösenord', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => 'Email', + ], + + 'password' => [ + 'label' => 'Lösenord', + ], + + 'passwordConfirmation' => [ + 'label' => 'Upprepa lösenord', + ], + + ], + + 'messages' => [ + + 'passwords' => [ + 'throttled' => 'Vänligen vänta före du försöker igen.', + 'token' => 'Länken för nytt lösenord är ogiltig.', + 'user' => 'Vi kan inte hitta någon användare med angiven mejladress.', + ], + + ], + + 'title' => 'Ange nytt lösenord', + +]; diff --git a/resources/lang/sv/dashboard.php b/resources/lang/sv/dashboard.php new file mode 100644 index 00000000000..127e0733e0f --- /dev/null +++ b/resources/lang/sv/dashboard.php @@ -0,0 +1,41 @@ + 'Dashboard', + + 'widgets' => [ + + 'account' => [ + + 'heading' => 'Välkommen, :name', + + 'links' => [ + + 'account' => [ + 'label' => 'Hantera ditt konto', + ], + + ], + + ], + + 'filament' => [ + + 'links' => [ + + 'documentation' => [ + 'label' => 'Läs dokumentation', + ], + + 'repository' => [ + 'label' => 'Gå till repository', + ], + + ], + + ], + + ], + +]; diff --git a/resources/lang/sv/edit-account.php b/resources/lang/sv/edit-account.php new file mode 100644 index 00000000000..b84e61b6741 --- /dev/null +++ b/resources/lang/sv/edit-account.php @@ -0,0 +1,19 @@ + [ + + 'save' => [ + 'label' => 'Spara', + ], + + ], + + 'messages' => [ + 'saved' => 'Sparad!', + ], + + 'title' => 'Konto', + +]; diff --git a/resources/lang/sv/nav.php b/resources/lang/sv/nav.php new file mode 100644 index 00000000000..0ba7f86533b --- /dev/null +++ b/resources/lang/sv/nav.php @@ -0,0 +1,17 @@ + [ + + 'account' => [ + 'label' => 'Redigera kontoa', + ], + + 'users' => [ + 'label' => 'Hantera användare', + ], + + ], + +]; diff --git a/resources/lang/sv/resources/pages/create-record.php b/resources/lang/sv/resources/pages/create-record.php new file mode 100644 index 00000000000..4d51877b3d2 --- /dev/null +++ b/resources/lang/sv/resources/pages/create-record.php @@ -0,0 +1,25 @@ + [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'create' => [ + 'label' => 'Ny', + ], + + 'createAnother' => [ + 'label' => 'Spara & Skapa en till', + ], + + ], + + 'messages' => [ + 'created' => 'Tillagd!', + ], + +]; diff --git a/resources/lang/sv/resources/pages/edit-record.php b/resources/lang/sv/resources/pages/edit-record.php new file mode 100644 index 00000000000..01ace6546f5 --- /dev/null +++ b/resources/lang/sv/resources/pages/edit-record.php @@ -0,0 +1,49 @@ + [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'delete' => [ + 'label' => 'Radera', + ], + + 'save' => [ + 'label' => 'Spara', + ], + + ], + + 'modals' => [ + + 'delete' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'confirm' => [ + 'label' => 'Bekräfta', + ], + + ], + + 'description' => 'Är du säker på att du vill radera den här? Det går inte att ångra.', + + 'heading' => 'Radera?', + + ], + + ], + + 'messages' => [ + 'saved' => 'Sparad!', + ], + +]; diff --git a/resources/lang/sv/resources/pages/list-records.php b/resources/lang/sv/resources/pages/list-records.php new file mode 100644 index 00000000000..6f667498712 --- /dev/null +++ b/resources/lang/sv/resources/pages/list-records.php @@ -0,0 +1,25 @@ + [ + + 'create' => [ + 'label' => 'Skapa', + ], + + ], + + 'table' => [ + + 'recordActions' => [ + + 'edit' => [ + 'label' => 'Redigera', + ], + + ], + + ], + +]; diff --git a/resources/lang/sv/resources/relation-manager.php b/resources/lang/sv/resources/relation-manager.php new file mode 100644 index 00000000000..de3f18c0c4a --- /dev/null +++ b/resources/lang/sv/resources/relation-manager.php @@ -0,0 +1,131 @@ + [ + + 'attach' => [ + 'label' => 'Relatera existerande', + ], + + 'create' => [ + 'label' => 'Relatera ny', + ], + + 'detach' => [ + 'label' => 'Avrelatera', + ], + + ], + + 'modals' => [ + + 'attach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'attach' => [ + 'label' => 'Relatera', + ], + + 'attachAnother' => [ + 'label' => 'Relatera & Relatera en till', + ], + + ], + + 'form' => [ + + 'related' => [ + 'placeholder' => 'Börja skriva för att söka...', + ], + + ], + + 'heading' => 'Relatera existerande', + + 'messages' => [ + 'attached' => 'Relaterad!', + ], + + ], + + 'create' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'create' => [ + 'label' => 'Relatera', + ], + + 'createAnother' => [ + 'label' => 'Relatera & Relatera en till', + ], + + ], + + 'heading' => 'Ny', + + 'messages' => [ + 'created' => 'Relaterad!', + ], + + ], + + 'detach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'detach' => [ + 'label' => 'Avrelatera', + ], + + ], + + 'description' => 'Är du säker på att du vill avrelatera valda rader? Det går inte att ångra.', + + 'heading' => 'Vill du avrelatera valda rader? ', + + 'messages' => [ + 'detached' => 'Avrelaterad!', + ], + + ], + + 'edit' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => 'Ångra', + ], + + 'save' => [ + 'label' => 'Spara', + ], + + ], + + 'heading' => 'Redigera', + + 'messages' => [ + 'saved' => 'Sparad!', + ], + + ], + + ], + +]; diff --git a/resources/lang/sv/resources/user-resource.php b/resources/lang/sv/resources/user-resource.php new file mode 100644 index 00000000000..e3e6677266f --- /dev/null +++ b/resources/lang/sv/resources/user-resource.php @@ -0,0 +1,84 @@ + [ + + 'avatar' => [ + 'label' => 'Avatar', + ], + + 'email' => [ + 'label' => 'Email adress', + ], + + 'isAdmin' => [ + 'label' => 'Filament admin?', + 'helpMessage' => 'Filament administratörer kan hantera användare och har tillgång till alla delar av Filament.', + ], + + 'isUser' => [ + 'label' => 'Filament användare?', + ], + + 'name' => [ + 'label' => 'Namn', + ], + + 'password' => [ + + 'fieldset' => [ + + 'label' => [ + 'create' => 'Lösenord', + 'edit' => 'Ange nytt lösenord', + ], + + ], + + 'fields' => [ + + 'password' => [ + 'label' => 'Lösenord', + ], + + 'passwordConfirmation' => [ + 'label' => 'Bekräfta lösenord', + ], + + ], + + ], + + 'roles' => [ + 'label' => 'Roles', + 'placeholder' => 'Select a role', + ], + + ], + + 'table' => [ + + 'columns' => [ + + 'email' => [ + 'label' => 'Email address', + ], + + 'name' => [ + 'label' => 'Name', + ], + + ], + + 'filters' => [ + + 'administrators' => [ + 'label' => 'Administrators', + ], + + ], + + ], + +]; From 60f578398dfdcaeebb6f8ea0918ff0eda28a903c Mon Sep 17 00:00:00 2001 From: tanthammar Date: Mon, 12 Apr 2021 18:43:41 +0200 Subject: [PATCH 5/5] user resource incomplete, Swedish --- resources/lang/sv/resources/user-resource.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lang/sv/resources/user-resource.php b/resources/lang/sv/resources/user-resource.php index e3e6677266f..be48a20a193 100644 --- a/resources/lang/sv/resources/user-resource.php +++ b/resources/lang/sv/resources/user-resource.php @@ -51,8 +51,8 @@ ], 'roles' => [ - 'label' => 'Roles', - 'placeholder' => 'Select a role', + 'label' => 'Roller', + 'placeholder' => 'Välj en roll', ], ], @@ -62,11 +62,11 @@ 'columns' => [ 'email' => [ - 'label' => 'Email address', + 'label' => 'Email', ], 'name' => [ - 'label' => 'Name', + 'label' => 'Namn', ], ], @@ -74,7 +74,7 @@ 'filters' => [ 'administrators' => [ - 'label' => 'Administrators', + 'label' => 'Administratörer', ], ],