aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/fileops
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/fileops
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/fileops')
-rw-r--r--src/plugins/General/fileops/fileopsfactory.cpp9
-rw-r--r--src/plugins/General/fileops/fileopsfactory.h2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/plugins/General/fileops/fileopsfactory.cpp b/src/plugins/General/fileops/fileopsfactory.cpp
index 799d9e3db..12dfd08a0 100644
--- a/src/plugins/General/fileops/fileopsfactory.cpp
+++ b/src/plugins/General/fileops/fileopsfactory.cpp
@@ -29,6 +29,7 @@ const GeneralProperties FileOpsFactory::properties() const
GeneralProperties properties;
properties.name = tr("File Operations Plugin");
properties.shortName = "fileops";
+ properties.translation = QLatin1String(":/fileops_plugin_");
properties.hasAbout = true;
properties.hasSettings = true;
properties.visibilityControl = false;
@@ -51,11 +52,3 @@ void FileOpsFactory::showAbout(QWidget *parent)
tr("Qmmp File Operations Plugin")+"\n"+
tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}
-
-QTranslator *FileOpsFactory::createTranslator(QObject *parent)
-{
- QTranslator *translator = new QTranslator(parent);
- QString locale = Qmmp::systemLanguageID();
- translator->load(QString(":/fileops_plugin_") + locale);
- return translator;
-}
diff --git a/src/plugins/General/fileops/fileopsfactory.h b/src/plugins/General/fileops/fileopsfactory.h
index 5d070c2a6..1118b67b9 100644
--- a/src/plugins/General/fileops/fileopsfactory.h
+++ b/src/plugins/General/fileops/fileopsfactory.h
@@ -24,7 +24,6 @@
@author Ilya Kotov <forkotov02@ya.ru>
*/
#include <QObject>
-#include <QTranslator>
#include <QDialog>
#include <qmmpui/general.h>
@@ -40,7 +39,6 @@ public:
QObject *create(QObject *parent);
QDialog *createConfigDialog(QWidget *parent);
void showAbout(QWidget *parent);
- QTranslator *createTranslator(QObject *parent);
};
#endif