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/Transports/http/httpinputfactory.cpp | |
| 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/Transports/http/httpinputfactory.cpp')
| -rw-r--r-- | src/plugins/Transports/http/httpinputfactory.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/plugins/Transports/http/httpinputfactory.cpp b/src/plugins/Transports/http/httpinputfactory.cpp index daedaf9f7..b733492b0 100644 --- a/src/plugins/Transports/http/httpinputfactory.cpp +++ b/src/plugins/Transports/http/httpinputfactory.cpp @@ -20,7 +20,6 @@ #include <QtPlugin> #include <QMessageBox> -#include <QTranslator> #include <curl/curlver.h> #include <qmmp/qmmp.h> #include "settingsdialog.h" @@ -29,13 +28,14 @@ const InputSourceProperties HTTPInputFactory::properties() const { - InputSourceProperties p; - p.protocols << "http" << "https"; - p.name = tr("HTTP Plugin"); - p.shortName = "http"; - p.hasAbout = true; - p.hasSettings = true; - return p; + InputSourceProperties properties; + properties.protocols << "http" << "https"; + properties.name = tr("HTTP Plugin"); + properties.shortName = "http"; + properties.translation = QLatin1String(":/http_plugin_"); + properties.hasAbout = true; + properties.hasSettings = true; + return properties; } InputSource *HTTPInputFactory::create(const QString &url, QObject *parent) @@ -56,11 +56,3 @@ void HTTPInputFactory::showAbout(QWidget *parent) tr("Compiled against libcurl-%1").arg(LIBCURL_VERSION) + "\n" + tr("Written by: Ilya Kotov <forkotov02@ya.ru>")); } - -QTranslator *HTTPInputFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/http_plugin_") + locale); - return translator; -} |
