From ee8e8a4fa8f2b05303e6357fca2836dda98e8f28 Mon Sep 17 00:00:00 2001 From: gaelle <gaelle.braud@belledonne-communications.com> Date: Thu, 20 Mar 2025 17:59:08 +0100 Subject: [PATCH] use system locale --- Linphone/core/App.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index 8d833f5b1..8e7453bef 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -569,14 +569,13 @@ void App::initLocale() { QString locale; // Use english. This default translator is used if there are no found translations in others loads - mLocale = QLocale(QLocale::French); + mLocale = QLocale(QLocale::English); if (!installLocale(*this, *mDefaultTranslatorCore, mLocale)) qFatal("Unable to install default translator."); - - if (installLocale(*this, *mTranslatorCore, getLocale())) { - qDebug() << "installed locale" << getLocale().name(); - return; - } +// if (installLocale(*this, *mTranslatorCore, getLocale())) { +// qDebug() << "installed locale" << getLocale().name(); +// return; +// } // Try to use system locale. // #ifdef Q_OS_MACOS @@ -1211,7 +1210,7 @@ void App::setSysTrayIcon() { //----------------------------------------------------------- void App::setLocale(QString configLocale) { - if (configLocale.isEmpty()) mLocale = QLocale(configLocale); + if (!configLocale.isEmpty()) mLocale = QLocale(configLocale); else mLocale = QLocale(QLocale::system().name()); } -- GitLab