Launcher: print the locale name when translations were successfully loaded
This commit is contained in:
parent
43c201d9d0
commit
4ee9021eab
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue