Update info about selected translation language if user changed it.

This commit is contained in:
Roman Telezhynskyi 2023-06-29 17:55:43 +03:00
parent 791aa22050
commit a459e41f1d
3 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,7 @@ auto PuzzlePreferencesConfigurationPage::Apply() -> QStringList
{ {
const auto locale = qvariant_cast<QString>(ui->langCombo->currentData()); const auto locale = qvariant_cast<QString>(ui->langCombo->currentData());
settings->SetLocale(locale); settings->SetLocale(locale);
VGAnalytics::Instance()->SetGUILanguage(settings->GetLocale());
m_langChanged = false; m_langChanged = false;
VAbstractApplication::VApp()->LoadTranslation(locale); VAbstractApplication::VApp()->LoadTranslation(locale);

View File

@ -128,6 +128,7 @@ auto TapePreferencesConfigurationPage::Apply() -> QStringList
{ {
const auto locale = qvariant_cast<QString>(ui->langCombo->currentData()); const auto locale = qvariant_cast<QString>(ui->langCombo->currentData());
settings->SetLocale(locale); settings->SetLocale(locale);
VGAnalytics::Instance()->SetGUILanguage(settings->GetLocale());
m_langChanged = false; m_langChanged = false;
const auto code = qvariant_cast<QString>(ui->systemCombo->currentData()); const auto code = qvariant_cast<QString>(ui->systemCombo->currentData());

View File

@ -221,6 +221,7 @@ auto PreferencesConfigurationPage::Apply() -> QStringList
{ {
const auto locale = qvariant_cast<QString>(ui->langCombo->currentData()); const auto locale = qvariant_cast<QString>(ui->langCombo->currentData());
settings->SetLocale(locale); settings->SetLocale(locale);
VGAnalytics::Instance()->SetGUILanguage(settings->GetLocale());
m_langChanged = false; m_langChanged = false;
const auto code = qvariant_cast<QString>(ui->systemCombo->currentData()); const auto code = qvariant_cast<QString>(ui->systemCombo->currentData());