summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2018-04-13 12:42:54 -0500
committerGitHub <noreply@github.com>2018-04-13 12:42:54 -0500
commit978d71bb433aa8525c33715de6112f9e201b216f (patch)
tree290be19c78cde90cda0cc66a6332c7029cb5cf62 /src/mainwindow.cpp
parent8be73d2e3b0af9cb99616d31418a0d9c74aca466 (diff)
parent25b6fe1471f665b86dc765232a0832daeffc8f8a (diff)
Merge pull request #304 from AnyOldName3/proxy-translation-support
Proxy translation support
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
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));