From a67c3cf65f2283274c1dd429150c4effbfbe0ca9 Mon Sep 17 00:00:00 2001 From: Ahmed Darrazi Date: Wed, 17 Dec 2025 14:48:09 +0100 Subject: [PATCH] bugfixes --- lang/de/button.php | 3 ++- lang/de/settings.php | 5 ++++- lang/en/button.php | 1 + lang/en/settings.php | 3 +++ .../js/pages/dashboard/settings/translation/index.tsx | 10 +++++----- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lang/de/button.php b/lang/de/button.php index 4586b56d..4ff2f338 100644 --- a/lang/de/button.php +++ b/lang/de/button.php @@ -53,6 +53,7 @@ return [ 'refresh_server' => 'Server aktualisieren', 'backup_now' => 'Jetzt sichern', 'update_application' => 'Anwendung aktualisieren', + 'set_default' => 'Als Standard setzen', 'play_course' => 'Kurs starten', 'course_player' => 'Kurs-Player', 'enroll_now' => 'Jetzt einschreiben', @@ -203,4 +204,4 @@ return [ 'style' => 'Stil', 'edit_navbar' => 'Navbar bearbeiten', 'edit_footer' => 'Footer bearbeiten', -]; \ No newline at end of file +]; diff --git a/lang/de/settings.php b/lang/de/settings.php index 567de690..8249c15c 100644 --- a/lang/de/settings.php +++ b/lang/de/settings.php @@ -13,6 +13,9 @@ return [ 'language_settings' => 'Spracheinstellungen', 'translation_settings' => 'Übersetzungseinstellungen', 'add_language' => 'Sprache hinzufügen', + 'translation_scope_information' => 'Informationen zum Übersetzungsbereich', + 'translation_scope_dashboard' => 'Übersetzungen werden auf die Dashboard-Oberflächen (Administrator, Dozent, Student) angewendet.', + 'translation_scope_public_pages' => 'Öffentliche Seiten sind von diesen Übersetzungen nicht betroffen, da sie über den Seiteneditor vollständig anpassbar sind.', 'configure_zoom' => 'Zoom Server-to-Server OAuth-Zugangsdaten konfigurieren', 'email_settings_description' => 'Konfiguriere deine E-Mail-Versandeinstellungen', @@ -209,4 +212,4 @@ return [ 'create_zoom_app' => 'Erstelle eine Server-to-Server OAuth App im Zoom Marketplace', 'get_credentials' => 'Hole dir Account ID, Client ID und Client Secret', 'configure_scopes' => 'Konfiguriere die erforderlichen Scopes für deine App', -]; \ No newline at end of file +]; diff --git a/lang/en/button.php b/lang/en/button.php index d45bc159..62559d66 100644 --- a/lang/en/button.php +++ b/lang/en/button.php @@ -60,6 +60,7 @@ return [ 'refresh_server' => 'Refresh Server', 'backup_now' => 'Backup Now', 'update_application' => 'Update Application', + 'set_default' => 'Set Default', // ================================================== // 03. Action Buttons diff --git a/lang/en/settings.php b/lang/en/settings.php index e5e2c971..5460488e 100644 --- a/lang/en/settings.php +++ b/lang/en/settings.php @@ -25,6 +25,9 @@ return [ 'language_settings' => 'Language Settings', 'translation_settings' => 'Translation Settings', 'add_language' => 'Add Language', + 'translation_scope_information' => 'Translation Scope Information', + 'translation_scope_dashboard' => 'Translations will be applied to dashboard interfaces (admin, instructor, student).', + 'translation_scope_public_pages' => 'Public pages are not affected by these translations as they are fully customizable through the page editor.', // Common Settings 'account_settings' => 'Account Settings', diff --git a/resources/js/pages/dashboard/settings/translation/index.tsx b/resources/js/pages/dashboard/settings/translation/index.tsx index 5d483abc..6cebbba2 100644 --- a/resources/js/pages/dashboard/settings/translation/index.tsx +++ b/resources/js/pages/dashboard/settings/translation/index.tsx @@ -12,7 +12,7 @@ import AddLanguage from './partials/add-language'; const Index = () => { const { props } = usePage(); const { translate } = props; - const { settings, common } = translate; + const { settings, common, button: buttonLabels } = translate; const languageStatus = (lang: Language, checked: boolean) => { router.put( @@ -47,10 +47,10 @@ const Index = () => {
-
Translation Scope Information
+
{settings.translation_scope_information}
    -
  • Translations will be applied to dashboard interfaces (admin, instructor, student).
  • -
  • Public pages are not affected by these translations as they are fully customizable through the page editor.
  • +
  • {settings.translation_scope_dashboard}
  • +
  • {settings.translation_scope_public_pages}
@@ -84,7 +84,7 @@ const Index = () => {
{lang.is_active ? ( ) : null}