Skip to content
Snippets Groups Projects
Commit 86659dd6 authored by Antoine Lorence's avatar Antoine Lorence
Browse files

[i18n] Try to read the language from settings at startup

Fallback to system default
parent 7a78fdb3
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,9 @@ int main(int argc, char** argv)
Log::configure(true, false, 0);
QString lang = QLocale::system().name().split('_').first();
QSettings settings;
QString lang = settings.value(QSETTINGS_LANGUAGE_PREFERENCE,
QLocale::system().name().split('_').first()).toString();
if(argc > 1) {
lang = QString(argv[1]);
}
......
Subproject commit 7993306f08e8a856aefa63493b7c604402dfe8ca
Subproject commit 39b6dc92311aee3fa6e057ef903e5420c194bd0f
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment