diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-06 10:53:52 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-06 10:53:52 +0000 |
| commit | 389799c3433a17a7babaeb3365f1fb8c12ea12fe (patch) | |
| tree | 4b0092c3936016af0f01062a0a5d8475e793a4ea /src/plugins | |
| parent | bc4c331d2c1fe0060de15c999110803f41f62b29 (diff) | |
| download | qmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.tar.gz qmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.tar.bz2 qmmp-389799c3433a17a7babaeb3365f1fb8c12ea12fe.zip | |
added gnome hotkey plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4123 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
29 files changed, 1020 insertions, 1 deletions
diff --git a/src/plugins/General/General.pro b/src/plugins/General/General.pro index 23d44e75f..9484a4b3d 100644 --- a/src/plugins/General/General.pro +++ b/src/plugins/General/General.pro @@ -13,7 +13,8 @@ SUBDIRS += statusicon \ rgscan unix:SUBDIRS += mpris \ kdenotify \ - converter + converter \ + gnomehotkey contains(CONFIG, UDISKS_PLUGIN){ unix:SUBDIRS += udisks diff --git a/src/plugins/General/gnomehotkey/gnomehotkey.pro b/src/plugins/General/gnomehotkey/gnomehotkey.pro new file mode 100644 index 000000000..5ae45e2aa --- /dev/null +++ b/src/plugins/General/gnomehotkey/gnomehotkey.pro @@ -0,0 +1,47 @@ +include(../../plugins.pri) + +CONFIG += warn_on \ +plugin \ + lib \ + qdbus + +TARGET = $$PLUGINS_PREFIX/General/gnomehotkey +QMAKE_CLEAN = $$PLUGINS_PREFIX/General/libgnomehotkey.so + +TEMPLATE = lib +QMAKE_LIBDIR += ../../../../lib + +TRANSLATIONS = translations/gnomehotkey_plugin_cs.ts \ + translations/gnomehotkey_plugin_de.ts \ + translations/gnomehotkey_plugin_zh_CN.ts \ + translations/gnomehotkey_plugin_zh_TW.ts \ + translations/gnomehotkey_plugin_ru.ts \ + translations/gnomehotkey_plugin_pl.ts \ + translations/gnomehotkey_plugin_uk_UA.ts \ + translations/gnomehotkey_plugin_it.ts \ + translations/gnomehotkey_plugin_tr.ts \ + translations/gnomehotkey_plugin_lt.ts \ + translations/gnomehotkey_plugin_nl.ts \ + translations/gnomehotkey_plugin_ja.ts \ + translations/gnomehotkey_plugin_es.ts \ + translations/gnomehotkey_plugin_sr_BA.ts \ + translations/gnomehotkey_plugin_sr_RS.ts + +RESOURCES = translations/translations.qrc + +isEmpty(LIB_DIR){ + LIB_DIR = /lib +} +target.path = $$LIB_DIR/qmmp/General +INSTALLS += target + + +HEADERS += gnomehotkeyfactory.h \ + mediakeys.h + +SOURCES += gnomehotkeyfactory.cpp \ + mediakeys.cpp + +INCLUDEPATH += ../../../../src + +LIBS += -lqmmpui -lqmmp diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp new file mode 100644 index 000000000..191c133a1 --- /dev/null +++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.cpp @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (C) 2014 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include <QtGui> +#include <qmmp/qmmp.h> +#include "mediakeys.h" +#include "gnomehotkeyfactory.h" + +const GeneralProperties GnomeHotkeyFactory::properties() const +{ + GeneralProperties properties; + properties.name = tr("Gnome Hotkey Plugin"); + properties.shortName = "gnomehotkey"; + properties.hasAbout = true; + properties.hasSettings = false; + properties.visibilityControl = false; + return properties; +} + +QObject *GnomeHotkeyFactory::create(QObject *parent) +{ + return new MediaKeys(parent); +} + +QDialog *GnomeHotkeyFactory::createConfigDialog(QWidget *parent) +{ + Q_UNUSED(parent); + return 0; +} + +void GnomeHotkeyFactory::showAbout(QWidget *parent) +{ + QMessageBox::about (parent, tr("About Gnome Hotkey Plugin"), + tr("Qmmp Gnome Hotkey Plugin") + "\n" + + tr("This plugin adds support of the GNOME/Cinnamone hotkeys") + "\n" + + tr("Written by: Ilya Kotov <forkotov02@hotmail.ru>")); +} + +QTranslator *GnomeHotkeyFactory::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = Qmmp::systemLanguageID(); + translator->load(QString(":/gnomehotkey_plugin_") + locale); + return translator; +} + +Q_EXPORT_PLUGIN2(gnomehotkey, GnomeHotkeyFactory) diff --git a/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h new file mode 100644 index 000000000..528282e57 --- /dev/null +++ b/src/plugins/General/gnomehotkey/gnomehotkeyfactory.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2014 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef GNOMEHOTKEYFACTORY_H +#define GNOMEHOTKEYFACTORY_H + + +#include <QObject> +#include <QTranslator> +#include <qmmpui/general.h> +#include <qmmpui/generalfactory.h> + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class GnomeHotkeyFactory : public QObject, public GeneralFactory +{ +Q_OBJECT +Q_INTERFACES(GeneralFactory) +public: + const GeneralProperties properties() const; + QObject *create(QObject *parent); + QDialog *createConfigDialog(QWidget *parent); + void showAbout(QWidget *parent); + QTranslator *createTranslator(QObject *parent); + +}; + +#endif diff --git a/src/plugins/General/gnomehotkey/mediakeys.cpp b/src/plugins/General/gnomehotkey/mediakeys.cpp new file mode 100644 index 000000000..e3b775df2 --- /dev/null +++ b/src/plugins/General/gnomehotkey/mediakeys.cpp @@ -0,0 +1,99 @@ +#include <QDBusInterface> +#include <QDBusConnection> +#include <QDBusPendingCallWatcher> +#include <QDBusConnectionInterface> +#include <QVariantList> +#include <QDateTime> +#include <QCoreApplication> +#include <qmmpui/mediaplayer.h> +#include <qmmp/soundcore.h> +#include "mediakeys.h" + +MediaKeys::MediaKeys(QObject *parent) : + QObject(parent) +{ + m_isRegistered = false; + m_interface = 0; + if(!QDBusConnection::sessionBus().interface()->isServiceRegistered("org.gnome.SettingsDaemon")) + { + qWarning("MediaKeys: gnome settings daemon is not running"); + return; + } + + m_interface = new QDBusInterface("org.gnome.SettingsDaemon", + "/org/gnome/SettingsDaemon/MediaKeys", + "org.gnome.SettingsDaemon.MediaKeys", + QDBusConnection::sessionBus(), this); + + QDBusPendingReply<> reply = grabMediaPlayerKeys(QCoreApplication::applicationName(), + QDateTime::currentDateTime().toTime_t()); + + QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(reply, this); + connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), SLOT(onRegisterFinished(QDBusPendingCallWatcher*))); +} + +MediaKeys::~MediaKeys() +{ + if(m_isRegistered && m_interface) + { + QDBusPendingReply<> reply = releaseMediaPlayerKeys(QCoreApplication::applicationName()); + reply.waitForFinished(); + qWarning("MediaKeys: unregistered"); + } +} + +QDBusPendingReply<> MediaKeys::grabMediaPlayerKeys(const QString &application, uint time) +{ + QVariantList argumentList; + argumentList << QVariant::fromValue(application) << QVariant::fromValue(time); + return m_interface->asyncCallWithArgumentList(QLatin1String("GrabMediaPlayerKeys"), argumentList); +} + +QDBusPendingReply<> MediaKeys::releaseMediaPlayerKeys(const QString &application) +{ + QVariantList argumentList; + argumentList << QVariant::fromValue(application); + return m_interface->asyncCallWithArgumentList(QLatin1String("ReleaseMediaPlayerKeys"), argumentList); +} + +void MediaKeys::onRegisterFinished(QDBusPendingCallWatcher *watcher) +{ + QDBusMessage reply = watcher->reply(); + watcher->deleteLater(); + + if (reply.type() == QDBusMessage::ErrorMessage) + { + qWarning("MediaKeys: unable to grab media keys: [%s] - %s", + qPrintable(reply.errorName()), qPrintable(reply.errorMessage())); + return; + } + m_interface->connection().connect("org.gnome.SettingsDaemon", + "/org/gnome/SettingsDaemon/MediaKeys", + "org.gnome.SettingsDaemon.MediaKeys", + "MediaPlayerKeyPressed", this, + SLOT(onKeyPressed(const QString&, const QString&))); + m_isRegistered = true; + qDebug("MediaKeys: registered"); + +} + +void MediaKeys::onKeyPressed(const QString &in0, const QString &in1) +{ + if(in0 != QCoreApplication::applicationName()) + return; + MediaPlayer *player = MediaPlayer::instance(); + SoundCore *core = SoundCore::instance(); + qDebug("MediaKeys: [%s] pressed", qPrintable(in1)); + if(in1 == "Play") + player->play(); + else if(in1 == "Pause") + core->pause(); + else if(in1 == "Stop") + player->stop(); + else if(in1 == "Previous") + player->previous(); + else if(in1 == "Next") + player->next(); + else + qWarning("MediaKeys: unknown media key pressed"); +} diff --git a/src/plugins/General/gnomehotkey/mediakeys.h b/src/plugins/General/gnomehotkey/mediakeys.h new file mode 100644 index 000000000..6fcada02e --- /dev/null +++ b/src/plugins/General/gnomehotkey/mediakeys.h @@ -0,0 +1,32 @@ +#ifndef MEDIAKEYS_H +#define MEDIAKEYS_H + +#include <QObject> +#include <QDBusPendingReply> + +class QDBusInterface; + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class MediaKeys : public QObject +{ + Q_OBJECT +public: + explicit MediaKeys(QObject *parent = 0); + virtual ~MediaKeys(); + +private slots: + QDBusPendingReply<> grabMediaPlayerKeys(const QString &application, uint time); + QDBusPendingReply<> releaseMediaPlayerKeys(const QString &application); + void onRegisterFinished(QDBusPendingCallWatcher *watcher); + void onKeyPressed(const QString &in0, const QString &in1); + +private: + QDBusInterface *m_interface; + bool m_isRegistered; + + +}; + +#endif // MEDIAKEYS_H diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_cs.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_cs.ts new file mode 100644 index 000000000..7712622bc --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_cs.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="cs_CZ"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_de.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_de.ts new file mode 100644 index 000000000..d04c9c1b3 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_de.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_es.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_es.ts new file mode 100644 index 000000000..80fa5fd32 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_es.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="es_ES"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_fr.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_fr.ts new file mode 100644 index 000000000..c12361e03 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_fr.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="fr_FR"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_gl_ES.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_gl_ES.ts new file mode 100644 index 000000000..336109b15 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_gl_ES.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="gl_ES"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_he.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_he.ts new file mode 100644 index 000000000..ab03bfde2 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_he.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="he_IL"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_hu.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_hu.ts new file mode 100644 index 000000000..2808f2197 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_hu.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="hu_HU"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_it.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_it.ts new file mode 100644 index 000000000..10ee55812 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_it.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="it_IT"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ja.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ja.ts new file mode 100644 index 000000000..948ee73b9 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ja.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ja_JP"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_kk.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_kk.ts new file mode 100644 index 000000000..f53d03b63 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_kk.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="kk_KZ"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_lt.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_lt.ts new file mode 100644 index 000000000..436dbf787 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_lt.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="lt_LT"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_nl.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_nl.ts new file mode 100644 index 000000000..0dbf27f5b --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_nl.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="nl_NL"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pl_PL.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pl_PL.ts new file mode 100644 index 000000000..f1c36a869 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pl_PL.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pl_PL"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pt_BR.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pt_BR.ts new file mode 100644 index 000000000..b89bf2a5b --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_pt_BR.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pt_BR"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ru.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ru.ts new file mode 100644 index 000000000..586bab9bc --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_ru.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ru_RU"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sk.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sk.ts new file mode 100644 index 000000000..c452d6660 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sk.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sk_SK"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_BA.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_BA.ts new file mode 100644 index 000000000..024e4c0fe --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_BA.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sr_BA"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_RS.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_RS.ts new file mode 100644 index 000000000..01c7c29d6 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_sr_RS.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sr_RS"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_tr.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_tr.ts new file mode 100644 index 000000000..921e9880e --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_tr.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="tr_TR"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_uk_UA.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_uk_UA.ts new file mode 100644 index 000000000..2ef4b4da9 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_uk_UA.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="uk_UA"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_CN.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_CN.ts new file mode 100644 index 000000000..d106055e2 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_CN.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_CN"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_TW.ts b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_TW.ts new file mode 100644 index 000000000..9305d2851 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/gnomehotkey_plugin_zh_TW.ts @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_TW"> +<context> + <name>GnomeHotkeyFactory</name> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="29"/> + <source>Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="50"/> + <source>About Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="51"/> + <source>Qmmp Gnome Hotkey Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="52"/> + <source>This plugin adds support of the GNOME/Cinnamone hotkeys</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../gnomehotkeyfactory.cpp" line="53"/> + <source>Written by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/General/gnomehotkey/translations/translations.qrc b/src/plugins/General/gnomehotkey/translations/translations.qrc new file mode 100644 index 000000000..868630c34 --- /dev/null +++ b/src/plugins/General/gnomehotkey/translations/translations.qrc @@ -0,0 +1,27 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource> + <file>gnomehotkey_plugin_ru.qm</file> + <file>gnomehotkey_plugin_uk_UA.qm</file> + <file>gnomehotkey_plugin_zh_CN.qm</file> + <file>gnomehotkey_plugin_zh_TW.qm</file> + <file>gnomehotkey_plugin_tr.qm</file> + <file>gnomehotkey_plugin_cs.qm</file> + <file>gnomehotkey_plugin_pt_BR.qm</file> + <file>gnomehotkey_plugin_de.qm</file> + <file>gnomehotkey_plugin_pl_PL.qm</file> + <file>gnomehotkey_plugin_fr.qm</file> + <file>gnomehotkey_plugin_it.qm</file> + <file>gnomehotkey_plugin_kk.qm</file> + <file>gnomehotkey_plugin_lt.qm</file> + <file>gnomehotkey_plugin_hu.qm</file> + <file>gnomehotkey_plugin_nl.qm</file> + <file>gnomehotkey_plugin_ja.qm</file> + <file>gnomehotkey_plugin_sk.qm</file> + <file>gnomehotkey_plugin_es.qm</file> + <file>gnomehotkey_plugin_he.qm</file> + <file>gnomehotkey_plugin_gl_ES.qm</file> + <file>gnomehotkey_plugin_sr_BA.qm</file> + <file>gnomehotkey_plugin_sr_RS.qm</file> + </qresource> +</RCC> |
