From 8f8b9d86b3caf12b18dadf89dd5c36e7090486f3 Mon Sep 17 00:00:00 2001 From: rrandomsky Date: Fri, 27 Oct 2023 17:29:16 +0200 Subject: [PATCH] [MOS-498] Change input language with the change of the system language Now when the user changes the system language, the input/keyboard language will change automatically (in the background). If the user changes the input/keyboard language, this will not change the system language. --- .../application-settings/windows/system/LanguagesWindow.cpp | 4 +++- pure_changelog.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module-apps/application-settings/windows/system/LanguagesWindow.cpp b/module-apps/application-settings/windows/system/LanguagesWindow.cpp index 3dc251ba57eb4d82d29d17356ebbbb6d6482218e..3120744d0dad36da224561a00c6beb2c776e7799 100644 --- a/module-apps/application-settings/windows/system/LanguagesWindow.cpp +++ b/module-apps/application-settings/windows/system/LanguagesWindow.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved. +// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "LanguagesWindow.hpp" @@ -30,7 +30,9 @@ namespace gui options.emplace_back(std::make_unique( lang, [=](const gui::Item &item) { + // Changing the system language will change the input language app::manager::Controller::changeDisplayLanguage(application, lang); + app::manager::Controller::changeInputLanguage(application, lang); return true; }, nullptr, diff --git a/pure_changelog.md b/pure_changelog.md index 650fdde6c627a66190c3c8b2f576f71e5fbcdedf..5d9a4f525e3f27b3e9f94dcb625b7479b8296029 100644 --- a/pure_changelog.md +++ b/pure_changelog.md @@ -26,6 +26,7 @@ * Added preserving message text and recipient number when closing new message window. * Added confirmation window when switching to tethering from an app with unsaved changes. * Added displaying number entered on the keypad during a call +* Added automatic change of input language when changing system language ### Changed / Improved