Qt: Move translation-related functions to their own file

This commit is contained in:
Connor McLaughlin
2022-08-18 23:20:03 +10:00
parent 0f82dc9161
commit 9bb73dea04
7 changed files with 181 additions and 158 deletions

View File

@ -1483,7 +1483,7 @@ void MainWindow::setupAdditionalUi()
connect(action, &QAction::triggered, [this, action]() {
const QString new_language = action->data().toString();
Host::SetBaseStringSettingValue("Main", "Language", new_language.toUtf8().constData());
QtHost::ReinstallTranslator();
QtHost::InstallTranslator();
recreate();
});
}