aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/kdenotify
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/kdenotify')
-rw-r--r--src/plugins/General/kdenotify/kdenotifyfactory.cpp9
-rw-r--r--src/plugins/General/kdenotify/kdenotifyfactory.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.cpp b/src/plugins/General/kdenotify/kdenotifyfactory.cpp
index c36ec0675..1597f3eb6 100644
--- a/src/plugins/General/kdenotify/kdenotifyfactory.cpp
+++ b/src/plugins/General/kdenotify/kdenotifyfactory.cpp
@@ -28,6 +28,7 @@ const GeneralProperties KdeNotifyFactory::properties() const
GeneralProperties properties;
properties.name = tr("KDE notification plugin");
properties.shortName = "kdenotify_icon";
+ properties.translation = QLatin1String(":/kdenotify_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -50,11 +51,3 @@ void KdeNotifyFactory::showAbout(QWidget *parent)
tr("KDE notification plugin for Qmmp") + "<br>"
"Artur Guzik <a.guzik88@gmail.com>");
}
-
-QTranslator *KdeNotifyFactory::createTranslator(QObject *parent)
-{
- QTranslator *translator = new QTranslator(parent);
- QString locale = Qmmp::systemLanguageID();
- translator->load(QString(":/kdenotify_plugin_") + locale);
- return translator;
-}
diff --git a/src/plugins/General/kdenotify/kdenotifyfactory.h b/src/plugins/General/kdenotify/kdenotifyfactory.h
index 1c6f7543a..083a95e6c 100644
--- a/src/plugins/General/kdenotify/kdenotifyfactory.h
+++ b/src/plugins/General/kdenotify/kdenotifyfactory.h
@@ -22,7 +22,6 @@
#define KDENOTIFYFACTORY_H
#include <QObject>
-#include <QTranslator>
#include <QDialog>
#include <qmmpui/general.h>
@@ -38,7 +37,6 @@ public:
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
- QTranslator *createTranslator(QObject *parent);
};
#endif // KDENOTIFYFACTORY_H