From 25b6fe1471f665b86dc765232a0832daeffc8f8a Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Fri, 13 Apr 2018 14:49:59 +0100 Subject: Reload plugin translation databases when changing language. --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index abcb5312..6cbe364e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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)); -- cgit v1.3.1