From 227aecb439de8839ea981a670423326227b32703 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Mon, 12 Dec 2022 16:44:07 +0100 Subject: [PATCH] Fix default language on Mac. --- CHANGELOG.md | 5 +++++ linphone-app/src/app/App.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d562a9d9f..7202bd89b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.0.2 - 2022-12-13 + +### Fixed +- Default Language didn't match with the system language (Qt bug). + ## 5.0.1 - 2022-12-09 ### Fixed diff --git a/linphone-app/src/app/App.cpp b/linphone-app/src/app/App.cpp index 2d6fd820a..a03bf65e2 100644 --- a/linphone-app/src/app/App.cpp +++ b/linphone-app/src/app/App.cpp @@ -853,7 +853,7 @@ void App::initLocale (const shared_ptr &config) { } // Try to use system locale. - QLocale sysLocale = QLocale::system(); + QLocale sysLocale = QLocale(QLocale::system().name());// Use Locale from name because Qt has a bug where it didn't use the QLocale::language (aka : translator.language != lolcale.language) on Mac. if (installLocale(*this, *mTranslator, sysLocale)) { mLocale = sysLocale.name(); return;