aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/covermanager
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/covermanager')
-rw-r--r--src/plugins/General/covermanager/covermanagerfactory.cpp9
-rw-r--r--src/plugins/General/covermanager/covermanagerfactory.h3
2 files changed, 1 insertions, 11 deletions
diff --git a/src/plugins/General/covermanager/covermanagerfactory.cpp b/src/plugins/General/covermanager/covermanagerfactory.cpp
index 1bdc22f99..ef79a0520 100644
--- a/src/plugins/General/covermanager/covermanagerfactory.cpp
+++ b/src/plugins/General/covermanager/covermanagerfactory.cpp
@@ -29,6 +29,7 @@ const GeneralProperties CoverManagerFactory::properties() const
GeneralProperties properties;
properties.name = tr("Cover Manager Plugin");
properties.shortName = "cover_manager";
+ properties.translation = QLatin1String(":/covermanager_plugin_");
properties.hasAbout = true;
properties.hasSettings = false;
properties.visibilityControl = false;
@@ -51,11 +52,3 @@ void CoverManagerFactory::showAbout(QWidget *parent)
tr("Qmmp Cover Manager Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
-
-QTranslator *CoverManagerFactory::createTranslator(QObject *parent)
-{
- QTranslator *translator = new QTranslator(parent);
- QString locale = Qmmp::systemLanguageID();
- translator->load(QString(":/covermanager_plugin_") + locale);
- return translator;
-}
diff --git a/src/plugins/General/covermanager/covermanagerfactory.h b/src/plugins/General/covermanager/covermanagerfactory.h
index c0394cc75..c9c78a277 100644
--- a/src/plugins/General/covermanager/covermanagerfactory.h
+++ b/src/plugins/General/covermanager/covermanagerfactory.h
@@ -24,7 +24,6 @@
@author Ilya Kotov <forkotov02@ya.ru>
*/
#include <QObject>
-#include <QTranslator>
#include <qmmpui/general.h>
#include <qmmpui/generalfactory.h>
@@ -39,8 +38,6 @@ public:
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
- QTranslator *createTranslator(QObject *parent);
-
};
#endif