Reload plugin translation databases when changing language.

This commit is contained in:
AnyOldName3
2018-04-13 14:49:59 +01:00
parent 6b5680f6e4
commit 25b6fe1471
+3
View File
@@ -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));