Fix default language on Mac.

This commit is contained in:
Julien Wadel 2022-12-12 16:44:07 +01:00
parent 81a3a197df
commit 227aecb439
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -853,7 +853,7 @@ void App::initLocale (const shared_ptr<linphone::Config> &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;