summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 44723449..6f6b9a47 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4387,6 +4387,17 @@ void MainWindow::languageChange(const QString &newLanguage)
installTranslator("qt");
installTranslator(ToQString(AppConfig::translationPrefix()));
+ foreach(IPlugin *plugin, m_Settings.plugins()) {
+ QObject *pluginObj = dynamic_cast<QObject*>(plugin);
+ if (pluginObj != NULL) {
+ QVariant fileNameVariant = pluginObj->property("filename");
+ if (fileNameVariant.isValid()) {
+ QString fileName = QFileInfo(fileNameVariant.toString()).baseName();
+ installTranslator(fileName);
+ }
+ }
+ }
+
ui->retranslateUi(this);
ui->profileBox->setItemText(0, QObject::tr("<Manage...>"));