~aleteoryx/muditaos

8f8b9d86b3caf12b18dadf89dd5c36e7090486f3 — rrandomsky 2 years ago fbe3d8d
[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.
2 files changed, 4 insertions(+), 1 deletions(-)

M module-apps/application-settings/windows/system/LanguagesWindow.cpp
M pure_changelog.md
M module-apps/application-settings/windows/system/LanguagesWindow.cpp => module-apps/application-settings/windows/system/LanguagesWindow.cpp +3 -1
@@ 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<gui::option::OptionSettings>(
                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,

M pure_changelog.md => pure_changelog.md +1 -0
@@ 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