Increase log-level of language messages
This is to help in-field debug of incorrect language selection, eg as reported by Sidi Liang
This commit is contained in:
parent
f1ab977ceb
commit
31bb36b347
1 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
|
|||
static_qApp->installTranslator(fallbackTranslator);
|
||||
}
|
||||
|
||||
qInfo() << "UI languages:" << QLocale().uiLanguages();
|
||||
qWarning() << "UI languages:" << QLocale().uiLanguages();
|
||||
|
||||
QTranslator* translator = new QTranslator(static_qApp.get());
|
||||
// check for --langauge=xx option and prefer that over QLocale
|
||||
|
@ -356,7 +356,7 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
|
|||
} else if (translator->load(QLocale(), QLatin1String("FlightGear"), QLatin1String("_"), QLatin1String(":/"))) {
|
||||
// QLocale().name() looks like ' "it_IT" ' (without the outer
|
||||
// quotes) when running FG on Linux with LANG=it_IT.UTF-8.
|
||||
qInfo() << "Loaded translations for locale" << QLocale().name();
|
||||
qWarning() << "Loaded translations for locale" << QLocale().name();
|
||||
static_qApp->installTranslator(translator);
|
||||
} else {
|
||||
delete translator;
|
||||
|
|
Loading…
Add table
Reference in a new issue