mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
select first language
This commit is contained in:
parent
c04efa8ac4
commit
0b82f6954f
@ -136,14 +136,14 @@ void MainWindow::detectPreferredLanguage()
|
||||
for (auto const & vcmiLang : Languages::getLanguageList())
|
||||
if (vcmiLang.tagIETF == userLang.toStdString())
|
||||
selectedLanguage = vcmiLang.identifier;
|
||||
}
|
||||
|
||||
logGlobal->info("Selected language: %s", selectedLanguage);
|
||||
|
||||
if (!selectedLanguage.empty())
|
||||
{
|
||||
Settings node = settings.write["general"]["language"];
|
||||
node->String() = selectedLanguage;
|
||||
if (!selectedLanguage.empty())
|
||||
{
|
||||
logGlobal->info("Selected language: %s", selectedLanguage);
|
||||
Settings node = settings.write["general"]["language"];
|
||||
node->String() = selectedLanguage;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user