diff options
| author | AnyOldName3 <krizdjali+github@gmail.com> | 2018-04-13 14:49:59 +0100 |
|---|---|---|
| committer | AnyOldName3 <krizdjali+github@gmail.com> | 2018-04-13 14:49:59 +0100 |
| commit | 25b6fe1471f665b86dc765232a0832daeffc8f8a (patch) | |
| tree | 290be19c78cde90cda0cc66a6332c7029cb5cf62 /src/mainwindow.cpp | |
| parent | 6b5680f6e4802b61cb77558565979b75761d5dbe (diff) | |
Reload plugin translation databases when changing language.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 3 |
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));
|
