load localization early
This commit is contained in:
parent
aed4ba6639
commit
1bbb6d9fe9
@ -93,12 +93,15 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
|
||||
}
|
||||
#endif
|
||||
|
||||
m_localization = new Localization(this);
|
||||
|
||||
m_localization->loadActiveLanguage();
|
||||
|
||||
m_nodejs = new NodeJs(m_settings, this);
|
||||
m_workHorsePool = new QThreadPool(this);
|
||||
m_webFactory = new WebFactory(this);
|
||||
m_system = new SystemFactory(this);
|
||||
m_skins = new SkinFactory(this);
|
||||
m_localization = new Localization(this);
|
||||
m_icons = new IconFactory(this);
|
||||
m_database = new DatabaseFactory(this);
|
||||
m_downloadManager = nullptr;
|
||||
|
@ -76,8 +76,6 @@ int main(int argc, char* argv[]) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Load localization and setup locale before any widget is constructed.
|
||||
qApp->localization()->loadActiveLanguage();
|
||||
qApp->setFeedReader(new FeedReader(&application));
|
||||
|
||||
// Register needed metatypes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user