Commit 74942a50 authored by Stefan Dunca's avatar Stefan Dunca

Log preferred language that is used for map fetching

parent b88923e8
......@@ -366,7 +366,8 @@ void QGCApplication::_exitWithError(QString errorMessage)
void QGCApplication::setLanguage()
{
_locale = QLocale::system();
qDebug() << "System reported locale:" << _locale << _locale.name();
qDebug() << "System reported locale:" << _locale << "; Name" << _locale.name() << "; Preffered (used in maps): " << (QLocale::system().uiLanguages().length() > 0 ? QLocale::system().uiLanguages()[0] : "None");
int langID = toolbox()->settingsManager()->appSettings()->language()->rawValue().toInt();
//-- See App.SettinsGroup.json for index
if(langID) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment