mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
Reload plugin translation databases when changing language.
This commit is contained in:
@@ -3726,6 +3726,9 @@ void MainWindow::languageChange(const QString &newLanguage)
|
||||
|
||||
installTranslator("qt");
|
||||
installTranslator(ToQString(AppConfig::translationPrefix()));
|
||||
for (const QString &fileName : m_PluginContainer.pluginFileNames()) {
|
||||
installTranslator(QFileInfo(fileName).baseName());
|
||||
}
|
||||
ui->retranslateUi(this);
|
||||
qDebug("loaded language %s", qPrintable(newLanguage));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user