diff options
Diffstat (limited to 'src/plugins/General/copypaste')
| -rw-r--r-- | src/plugins/General/copypaste/copypastefactory.cpp | 9 | ||||
| -rw-r--r-- | src/plugins/General/copypaste/copypastefactory.h | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/General/copypaste/copypastefactory.cpp b/src/plugins/General/copypaste/copypastefactory.cpp index bbd189c55..458d6a764 100644 --- a/src/plugins/General/copypaste/copypastefactory.cpp +++ b/src/plugins/General/copypaste/copypastefactory.cpp @@ -28,6 +28,7 @@ const GeneralProperties CopyPasteFactory::properties() const GeneralProperties properties; properties.name = tr("Copy/Paste Plugin"); properties.shortName = "copypaste"; + properties.translation = QLatin1String(":/copypaste_plugin_"); properties.hasAbout = true; properties.hasSettings = false; properties.visibilityControl = false; @@ -51,11 +52,3 @@ void CopyPasteFactory::showAbout(QWidget *parent) tr("This plugin allows one to copy selected tracks from one playlist to another")+"\n"+ tr("Written by: Ilya Kotov <forkotov02@ya.ru>")); } - -QTranslator *CopyPasteFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/copypaste_plugin_") + locale); - return translator; -} diff --git a/src/plugins/General/copypaste/copypastefactory.h b/src/plugins/General/copypaste/copypastefactory.h index 0b8f5c7fa..1dda634e4 100644 --- a/src/plugins/General/copypaste/copypastefactory.h +++ b/src/plugins/General/copypaste/copypastefactory.h @@ -24,7 +24,6 @@ @author Ilya Kotov <forkotov02@ya.ru> */ #include <QObject> -#include <QTranslator> #include <QDialog> #include <qmmpui/general.h> #include <qmmpui/generalfactory.h> @@ -39,7 +38,6 @@ public: QObject *create(QObject *parent); QDialog *createConfigDialog(QWidget *); void showAbout(QWidget *parent); - QTranslator *createTranslator(QObject *parent); }; #endif // COPYPASTEFACTORY_H |
