aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/trackchange
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-21 14:38:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-07-21 14:38:08 +0000
commit0006966c0f307ec7dff51130ce26bbe3c7061418 (patch)
treea9a760770de8b91c543e1308392bf2ec9e926a58 /src/plugins/General/trackchange
parent20967c016b4c63b75cb0af2b0f3ccc006addd6df (diff)
downloadqmmp-0006966c0f307ec7dff51130ce26bbe3c7061418.tar.gz
qmmp-0006966c0f307ec7dff51130ce26bbe3c7061418.tar.bz2
qmmp-0006966c0f307ec7dff51130ce26bbe3c7061418.zip
changed translation api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8196 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/trackchange')
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.cpp9
-rw-r--r--src/plugins/General/trackchange/trackchangefactory.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/General/trackchange/trackchangefactory.cpp b/src/plugins/General/trackchange/trackchangefactory.cpp
index dcbf6000b..806f3f073 100644
--- a/src/plugins/General/trackchange/trackchangefactory.cpp
+++ b/src/plugins/General/trackchange/trackchangefactory.cpp
@@ -29,6 +29,7 @@ const GeneralProperties TrackChangeFactory::properties() const
GeneralProperties properties;
properties.name = tr("Track Change Plugin");
properties.shortName = "trackchange";
+ properties.translation = QLatin1String(":/trackchange_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -52,11 +53,3 @@ void TrackChangeFactory::showAbout(QWidget *parent)
tr("This plugin executes external command when current track is changed") + "\n" +
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
-
-QTranslator *TrackChangeFactory::createTranslator(QObject *parent)
-{
- QTranslator *translator = new QTranslator(parent);
- QString locale = Qmmp::systemLanguageID();
- translator->load(QString(":/trackchange_plugin_") + locale);
- return translator;
-}
diff --git a/src/plugins/General/trackchange/trackchangefactory.h b/src/plugins/General/trackchange/trackchangefactory.h
index 482d973b6..955053a72 100644
--- a/src/plugins/General/trackchange/trackchangefactory.h
+++ b/src/plugins/General/trackchange/trackchangefactory.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 *parent);
void showAbout(QWidget *parent);
- QTranslator *createTranslator(QObject *parent);
};
#endif