diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-07-21 14:38:08 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-07-21 14:38:08 +0000 |
| commit | 0006966c0f307ec7dff51130ce26bbe3c7061418 (patch) | |
| tree | a9a760770de8b91c543e1308392bf2ec9e926a58 /src/plugins/General/mpris | |
| parent | 20967c016b4c63b75cb0af2b0f3ccc006addd6df (diff) | |
| download | qmmp-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/mpris')
| -rw-r--r-- | src/plugins/General/mpris/mprisfactory.cpp | 9 | ||||
| -rw-r--r-- | src/plugins/General/mpris/mprisfactory.h | 3 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/plugins/General/mpris/mprisfactory.cpp b/src/plugins/General/mpris/mprisfactory.cpp index 30c013713..645d42480 100644 --- a/src/plugins/General/mpris/mprisfactory.cpp +++ b/src/plugins/General/mpris/mprisfactory.cpp @@ -29,6 +29,7 @@ const GeneralProperties MPRISFactory::properties() const GeneralProperties properties; properties.name = tr("MPRIS Plugin"); properties.shortName = "mpris"; + properties.translation = QLatin1String(":/mpris_plugin_"); properties.hasAbout = true; properties.hasSettings = false; properties.visibilityControl = false; @@ -51,11 +52,3 @@ void MPRISFactory::showAbout(QWidget *parent) tr("Qmmp MPRIS Plugin")+"\n"+ tr("Written by: Ilya Kotov <forkotov02@ya.ru>")); } - -QTranslator *MPRISFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/mpris_plugin_") + locale); - return translator; -} diff --git a/src/plugins/General/mpris/mprisfactory.h b/src/plugins/General/mpris/mprisfactory.h index 7d1fd85e3..28abf020e 100644 --- a/src/plugins/General/mpris/mprisfactory.h +++ b/src/plugins/General/mpris/mprisfactory.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 |
