From 17b4cb3590bbc8ca0a50ed9a16dc9dfa2771fe10 Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Wed, 2 Oct 2024 16:07:08 +0200 Subject: [PATCH] Make translations Fix missing translation --- frontend/messages/ar.json | 3 +++ frontend/messages/de.json | 3 +++ frontend/messages/en.json | 3 +++ frontend/messages/es.json | 3 +++ frontend/messages/fr.json | 3 +++ frontend/messages/hi.json | 3 +++ frontend/messages/it.json | 3 +++ frontend/messages/nl.json | 3 +++ frontend/messages/pl.json | 3 +++ frontend/messages/pt.json | 3 +++ frontend/messages/ro.json | 3 +++ frontend/messages/ur.json | 3 +++ .../lib/components/Forms/ModelForm/GeneralSettingForm.svelte | 2 +- frontend/src/routes/(app)/(internal)/settings/+page.server.ts | 4 +--- frontend/src/routes/(app)/(internal)/settings/+page.svelte | 4 +--- 15 files changed, 39 insertions(+), 7 deletions(-) diff --git a/frontend/messages/ar.json b/frontend/messages/ar.json index 390a8b048..691b7e527 100644 --- a/frontend/messages/ar.json +++ b/frontend/messages/ar.json @@ -111,6 +111,7 @@ "framework": "الإطار", "file": "الملف", "language": "اللغة", + "defaultLanguage": "اللغة الافتراضية", "builtin": "مضمن", "next": "التالي", "previous": "السابق", @@ -619,7 +620,9 @@ "errorImportingLibrary": "خطأ أثناء استيراد المكتبة", "libraryImportError": "حدث خطأ أثناء استيراد المكتبة", "ssoSettingsUpdated": "تم تحديث إعدادات تسجيل الدخول الموحد", + "generalSettingsUpdated": "تم تحديث الإعدادات العامة", "ssoSettings": "إعدادات تسجيل الدخول الموحد", + "generalSettings": "الإعدادات العامة", "ssoSettingsDescription": "قم بتكوين إعدادات تسجيل الدخول الموحد هنا.", "sso": "SSO", "isSso": "هل هو SSO", diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 14f59f4eb..0b715dae3 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -121,6 +121,7 @@ "frameworkColon": "Rahmen:", "file": "Datei", "language": "Sprache", + "defaultLanguage": "Standardsprache", "builtin": "Eingebaut", "next": "Weiter", "previous": "Zurück", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Fehler beim Importieren der Bibliothek", "libraryImportError": "Beim Importieren Ihrer Bibliothek ist ein Fehler aufgetreten.", "ssoSettingsUpdated": "SSO-Einstellungen aktualisiert", + "generalSettingsUpdated": "Allgemeine Einstellungen aktualisiert", "ssoSettings": "SSO-Einstellungen", + "generalSettings": "Allgemeine Einstellungen", "ssoSettingsDescription": "Konfigurieren Sie hier Ihre Single Sign-On-Einstellungen.", "sso": "SSO", "isSso": "Ist SSO", diff --git a/frontend/messages/en.json b/frontend/messages/en.json index edcc7e373..3556301db 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -122,6 +122,7 @@ "frameworkColon": "Framework:", "file": "File", "language": "Language", + "defaultLanguage": "Default language", "builtin": "Builtin", "next": "Next", "previous": "Previous", @@ -642,7 +643,9 @@ "errorImportingLibrary": "Error during library import", "libraryImportError": "An error occurred during library import", "ssoSettingsUpdated": "SSO settings updated", + "generalSettingsUpdated": "General settings updated", "ssoSettings": "SSO settings", + "generalSettings": "General settings", "ssoSettingsDescription": "Configure your Single Sign-On settings here.", "sso": "SSO", "isSso": "Is SSO", diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 64a4c91e6..4b26fe689 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -121,6 +121,7 @@ "frameworkColon": "Estructura:", "file": "Archivo", "language": "Idioma", + "defaultLanguage": "Idioma predeterminado", "builtin": "Integrado", "next": "Siguiente", "previous": "Anterior", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Error al importar la biblioteca", "libraryImportError": "Ocurrió un error durante la importación de su biblioteca.", "ssoSettingsUpdated": "Configuración de SSO actualizada", + "generalSettingsUpdated": "Configuración general actualizada", "ssoSettings": "Configuración de inicio de sesión único", + "generalSettings": "Configuración general", "ssoSettingsDescription": "Configure sus ajustes de inicio de sesión único aquí.", "sso": "SSO", "isSso": "es SSO", diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index af9a58386..aa8f09ee2 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -121,6 +121,7 @@ "frameworkColon": "Référentiel :", "file": "Fichier", "language": "Langue", + "defaultLanguage": "Langue par défaut", "builtin": "Intégré", "next": "Suivant", "previous": "Précédent", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Erreur lors de l'importation de la bibliothèque", "libraryImportError": "Une erreur s'est produite lors de l'importation de la bibliothèque", "ssoSettingsUpdated": "Paramètres SSO mis à jour", + "generalSettingsUpdated": "Paramètres généraux mis à jour", "ssoSettings": "Paramètres SSO", + "generalSettings": "Paramètres généraux", "ssoSettingsDescription": "Configurez vos paramètres d'authentification unique ici.", "sso": "SSO", "isSso": "Est SSO", diff --git a/frontend/messages/hi.json b/frontend/messages/hi.json index 3932ce4f0..32e51abf0 100644 --- a/frontend/messages/hi.json +++ b/frontend/messages/hi.json @@ -119,6 +119,7 @@ "frameworkColon": "फ्रेमवर्क:", "file": "फाइल", "language": "भाषा", + "defaultLanguage": "डिफ़ॉल्ट भाषा", "builtin": "बिल्ट-इन", "next": "अगला", "previous": "पिछला", @@ -638,7 +639,9 @@ "errorImportingLibrary": "लाइब्रेरी आयात के दौरान त्रुटि", "libraryImportError": "लाइब्रेरी आयात के दौरान एक त्रुटि उत्पन्न हुई", "ssoSettingsUpdated": "SSO सेटिंग्स अपडेट की गईं", + "generalSettingsUpdated": "सामान्य सेटिंग अपडेट की गईं", "ssoSettings": "SSO सेटिंग्स", + "generalSettings": "सामान्य सेटिंग्स", "ssoSettingsDescription": "यहाँ अपने सिंगल साइन-ऑन सेटिंग्स कॉन्फ़िगर करें।", "sso": "SSO", "isSso": "क्या SSO है", diff --git a/frontend/messages/it.json b/frontend/messages/it.json index ce6c6112d..fa40c6da1 100644 --- a/frontend/messages/it.json +++ b/frontend/messages/it.json @@ -121,6 +121,7 @@ "frameworkColon": "Struttura:", "file": "File", "language": "Lingua", + "defaultLanguage": "Lingua predefinita", "builtin": "Integrato", "next": "Avanti", "previous": "Indietro", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Errore durante l'importazione della biblioteca", "libraryImportError": "Si è verificato un errore durante l'importazione della tua biblioteca.", "ssoSettingsUpdated": "Impostazioni SSO aggiornate", + "generalSettingsUpdated": "Impostazioni generali aggiornate", "ssoSettings": "Impostazioni SSO", + "generalSettings": "Impostazioni generali", "ssoSettingsDescription": "Configura qui le tue impostazioni Single Sign-On.", "sso": "SSO", "isSso": "È SSO", diff --git a/frontend/messages/nl.json b/frontend/messages/nl.json index 14016a15e..9c558718b 100644 --- a/frontend/messages/nl.json +++ b/frontend/messages/nl.json @@ -121,6 +121,7 @@ "frameworkColon": "Kader:", "file": "Bestand", "language": "Taal", + "defaultLanguage": "Standaardtaal", "builtin": "Ingebouwd", "next": "Volgende", "previous": "Vorige", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Fout bij het importeren van de bibliotheek", "libraryImportError": "Er is een fout opgetreden tijdens het importeren van je bibliotheek.", "ssoSettingsUpdated": "SSO-instellingen bijgewerkt", + "generalSettingsUpdated": "Algemene instellingen bijgewerkt", "ssoSettings": "SSO-instellingen", + "generalSettings": "Algemene instellingen", "ssoSettingsDescription": "Configureer hier uw Single Sign-On-instellingen.", "sso": "SSO", "isSso": "Is SSO", diff --git a/frontend/messages/pl.json b/frontend/messages/pl.json index f3fce05ef..6ca93b8ad 100644 --- a/frontend/messages/pl.json +++ b/frontend/messages/pl.json @@ -121,6 +121,7 @@ "frameworkColon": "Struktura:", "file": "Plik", "language": "Język", + "defaultLanguage": "Język domyślny", "builtin": "Wbudowany", "next": "Następny", "previous": "Poprzedni", @@ -637,7 +638,9 @@ "errorImportingLibrary": "Błąd podczas importowania biblioteki", "libraryImportError": "Wystąpił błąd podczas importowania biblioteki", "ssoSettingsUpdated": "Ustawienia SSO zaktualizowane", + "generalSettingsUpdated": "Zaktualizowano ustawienia ogólne", "ssoSettings": "Ustawienia SSO", + "generalSettings": "Ustawienia ogólne", "ssoSettingsDescription": "Skonfiguruj ustawienia Single Sign-On tutaj.", "sso": "SSO", "isSso": "Czy SSO", diff --git a/frontend/messages/pt.json b/frontend/messages/pt.json index 0f5c89ca7..99c8585a5 100644 --- a/frontend/messages/pt.json +++ b/frontend/messages/pt.json @@ -121,6 +121,7 @@ "frameworkColon": "Estrutura:", "file": "Arquivo", "language": "Idioma", + "defaultLanguage": "Idioma padrão", "builtin": "Integrado", "next": "Próximo", "previous": "Anterior", @@ -600,7 +601,9 @@ "errorImportingLibrary": "Erro durante a importação da biblioteca", "libraryImportError": "Ocorreu um erro durante a importação da biblioteca", "ssoSettingsUpdated": "Configurações de SSO atualizadas", + "generalSettingsUpdated": "Configurações gerais atualizadas", "ssoSettings": "Configurações de SSO", + "generalSettings": "Configurações gerais", "ssoSettingsDescription": "Defina suas configurações de logon único aqui.", "sso": "SSO", "isSso": "É SSO", diff --git a/frontend/messages/ro.json b/frontend/messages/ro.json index e83758945..1cc05f920 100644 --- a/frontend/messages/ro.json +++ b/frontend/messages/ro.json @@ -117,6 +117,7 @@ "frameworkColon": "Cadru:", "file": "Fișier", "language": "Limbă", + "defaultLanguage": "Limba implicită", "builtin": "Încorporat", "next": "Următor", "previous": "Anterior", @@ -635,7 +636,9 @@ "errorImportingLibrary": "Eroare în timpul importului bibliotecii", "libraryImportError": "A apărut o eroare în timpul importului bibliotecii", "ssoSettingsUpdated": "Setările SSO au fost actualizate", + "generalSettingsUpdated": "Setări generale actualizate", "ssoSettings": "Setări SSO", + "generalSettings": "Setări generale", "ssoSettingsDescription": "Configurați setările dvs. Single Sign-On aici.", "sso": "SSO", "isSso": "Este SSO", diff --git a/frontend/messages/ur.json b/frontend/messages/ur.json index dd13911df..6999e5397 100644 --- a/frontend/messages/ur.json +++ b/frontend/messages/ur.json @@ -119,6 +119,7 @@ "frameworkColon": "فریم ورک:", "file": "فائل", "language": "زبان", + "defaultLanguage": "پہلے سے طے شدہ زبان", "builtin": "بلٹ ان", "next": "اگلا", "previous": "پچھلا", @@ -638,7 +639,9 @@ "errorImportingLibrary": "لائبریری درآمد کرتے وقت خرابی", "libraryImportError": "لائبریری درآمد کرتے وقت ایک خرابی پیش آئی", "ssoSettingsUpdated": "SSO کی ترتیبات کو اپ ڈیٹ کر دیا گیا", + "generalSettingsUpdated": "عمومی ترتیبات کو اپ ڈیٹ کر دیا گیا۔", "ssoSettings": "SSO کی ترتیبات", + "generalSettings": "عام ترتیبات", "ssoSettingsDescription": "اپنی سنگل سائن آن کی ترتیبات یہاں ترتیب دیں۔", "sso": "SSO", "isSso": "کیا SSO ہے", diff --git a/frontend/src/lib/components/Forms/ModelForm/GeneralSettingForm.svelte b/frontend/src/lib/components/Forms/ModelForm/GeneralSettingForm.svelte index 48f37f81f..b109b4f60 100644 --- a/frontend/src/lib/components/Forms/ModelForm/GeneralSettingForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/GeneralSettingForm.svelte @@ -26,5 +26,5 @@ cacheLock={cacheLocks['lang']} bind:cachedValue={formDataCache['lang']} options={langOptions} - label={m.language()} + label={m.defaultLanguage()} /> diff --git a/frontend/src/routes/(app)/(internal)/settings/+page.server.ts b/frontend/src/routes/(app)/(internal)/settings/+page.server.ts index 1318d40cc..31d8219bc 100644 --- a/frontend/src/routes/(app)/(internal)/settings/+page.server.ts +++ b/frontend/src/routes/(app)/(internal)/settings/+page.server.ts @@ -74,9 +74,7 @@ export const actions: Actions = { if (!response.ok) return handleErrorResponse({ event, response, form }); - // Make the translation - // It must be called m.generalSettingsUpdated() - setFlash({ type: 'success', message: m.ssoSettingsUpdated() }, event); + setFlash({ type: 'success', message: m.generalSettingsUpdated() }, event); return { form }; }, diff --git a/frontend/src/routes/(app)/(internal)/settings/+page.svelte b/frontend/src/routes/(app)/(internal)/settings/+page.svelte index 9129b76a2..c3e0d9fe6 100644 --- a/frontend/src/routes/(app)/(internal)/settings/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/settings/+page.svelte @@ -15,10 +15,8 @@ > - - General Settings {m.generalSettings()}