1
0
Fork 0

Launcher: print the locale name when translations were successfully loaded

This commit is contained in:
Florent Rougon 2018-10-11 22:37:33 +02:00
parent 43c201d9d0
commit 4ee9021eab

View file

@ -290,7 +290,9 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
QTranslator* translator = new QTranslator(static_qApp.get());
if (translator->load(QLocale(), QLatin1String("FlightGear"), QLatin1String("_"), QLatin1String(":/"))) {
qInfo() << "Loaded translations";
// 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();
static_qApp->installTranslator(translator);
} else {
delete translator;