aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/kdenotify
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-19 13:54:50 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-19 13:54:50 +0000
commit6623dcc7cd9f07571a0666d977955872ca159413 (patch)
treeb52049ebf42e595c688b1c939fea4942c22df437 /src/plugins/General/kdenotify
parenta2ad8e58276e02883b52b22c28eecb9c2d01f2c9 (diff)
downloadqmmp-6623dcc7cd9f07571a0666d977955872ca159413.tar.gz
qmmp-6623dcc7cd9f07571a0666d977955872ca159413.tar.bz2
qmmp-6623dcc7cd9f07571a0666d977955872ca159413.zip
improved kde notification plugin (Artur Guzik)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1510 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/kdenotify')
-rw-r--r--src/plugins/General/kdenotify/kdenotify.cpp68
-rw-r--r--src/plugins/General/kdenotify/kdenotify.h6
-rw-r--r--src/plugins/General/kdenotify/kdenotify.pro11
-rw-r--r--src/plugins/General/kdenotify/settingsdialog.cpp2
-rw-r--r--src/plugins/General/kdenotify/settingsdialog.ui9
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_cs.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_de.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_it.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_lt.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_pl.ts21
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_ru.ts21
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_tr.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_uk_UA.ts25
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_CN.ts17
-rw-r--r--src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_TW.ts17
15 files changed, 187 insertions, 95 deletions
diff --git a/src/plugins/General/kdenotify/kdenotify.cpp b/src/plugins/General/kdenotify/kdenotify.cpp
index 5c67107e1..908e21432 100644
--- a/src/plugins/General/kdenotify/kdenotify.cpp
+++ b/src/plugins/General/kdenotify/kdenotify.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Artur Guzik *
+ * Copyright (C) 2009-2010 by Artur Guzik *
* a.guzik88@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -21,13 +21,13 @@
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDBusInterface>
-#include <QList>
-#include <QStringList>
-#include <QVariant>
#include <QFileInfo>
#include <QDir>
#include <QSettings>
#include <QDebug>
+#include <QTimer>
+#include <QImage>
+
#include <qmmp/soundcore.h>
#include <qmmp/metadatamanager.h>
#include "kdenotify.h"
@@ -43,36 +43,47 @@ KdeNotify::KdeNotify(QObject *parent) : General(parent)
return;
}
+ m_ConfigDir = QFileInfo(Qmmp::configFile()).absoluteDir().path();
+
QSettings settings(Qmmp::configFile(),QSettings::IniFormat);
settings.beginGroup("Kde_Notifier");
m_NotifyDelay = settings.value("notify_delay",10000).toInt();
+ m_ShowCovers = settings.value("show_covers",true).toBool();
settings.endGroup();
- connect(SoundCore::instance(),SIGNAL(metaDataChanged()), SLOT(showMetaData()));
+
+ QTimer *timer = new QTimer(this);
+ timer->setSingleShot(true);
+ timer->setInterval(3000); //after that notification will be showed.
+ connect(timer,SIGNAL(timeout()),SLOT(showMetaData()));
+ connect(SoundCore::instance(),SIGNAL(metaDataChanged()),timer, SLOT(start()));
}
KdeNotify::~KdeNotify()
{
+ QDir dir(QDir::home());
+ dir.remove(m_ConfigDir + "/cover.jpg");
delete notifier;
}
QString KdeNotify::totalTimeString()
{
- SoundCore * core = SoundCore::instance();
- int second = core->totalTime() / 1000;
- int minute = second / 60;
- int hour = minute / 60;
+ int time = SoundCore::instance()->totalTime()/1000;
- if(core->totalTime() >= 3600000)
+ if(time >= 3600)
{
- return QString("%1:%2:%3").arg(hour,2,10,QChar('0')).arg(minute%60,2,10,QChar('0'))
- .arg(second%60,2,10,QChar('0'));
+ return QString("%1:%2:%3").arg(time/3600,2,10,QChar('0')).arg(time%3600/60,2,10,QChar('0'))
+ .arg(time%60,2,10,QChar('0'));
}
- return QString("%1:%2").arg(minute%60,2,10,QChar('0')).arg(second%60,2,10,QChar('0'));
+ return QString("%1:%2").arg(time/60,2,10,QChar('0')).arg(time%60,2,10,QChar('0'));
}
-void KdeNotify::showMetaData()
+QList<QVariant> KdeNotify::prepareNotification()
{
SoundCore *core = SoundCore::instance();
+ if(core->metaData(Qmmp::URL).isEmpty()) //prevent show empty notification
+ {
+ return QList<QVariant>();
+ }
QList<QVariant> args;
QString body(""); //metadata set
QString title(core->metaData(Qmmp::TITLE));
@@ -82,8 +93,8 @@ void KdeNotify::showMetaData()
args.append("Qmmp"); //app-name
args.append(0U); //replaces-id
args.append(""); //event-id
- args.append(QFileInfo(Qmmp::configFile()).absoluteDir().path() + "/app_icon.png"); //app-icon(path to icon on disk)
- args.append(tr("Qmmp now playing:")); //summary (notification title)
+ args.append(m_ConfigDir + "/app_icon.png"); //app-icon(path to icon on disk)
+ args.append(tr("Qmmp now playing:")); //summary (notification title)
if(title.isEmpty())
{
@@ -93,20 +104,26 @@ void KdeNotify::showMetaData()
if(!artist.isEmpty())
{
- body.append(tr("by ") + artist + "<br>");
+ body.append(tr("by ") + artist + "<br>");
}
if(!album.isEmpty())
{
- body.append(tr("on ") + album);
+ body.append(tr("on ") + album);
}
QString nBody;
- QString coverPath = MetaDataManager::instance()->getCoverPath(core->metaData(Qmmp::URL));
- if(coverPath.isEmpty())
+ QString coverPath = MetaDataManager::instance()->getCoverPath(core->metaData(Qmmp::URL));
+ if(!coverPath.isEmpty() && m_ShowCovers)
+ {
+ QImage image(coverPath);
+ image.scaled(100,100,Qt::IgnoreAspectRatio,Qt::SmoothTransformation).save(m_ConfigDir + "/cover.jpg","JPG");
+ coverPath = m_ConfigDir + "/cover.jpg";
+ }
+ else if(coverPath.isEmpty() || !m_ShowCovers)
{
- coverPath = QFileInfo(Qmmp::configFile()).absoluteDir().path() + "/empty_cover.png";
+ coverPath = m_ConfigDir + "/empty_cover.png";
}
nBody.append("<table padding=\"3px\"><tr><td width=\"80px\" height=\"80px\" padding=\"3px\">");
@@ -118,5 +135,12 @@ void KdeNotify::showMetaData()
args.append(QVariantMap()); //hints
args.append(m_NotifyDelay); //timeout
- notifier->callWithArgumentList(QDBus::AutoDetect,"Notify",args);
+ return args;
+}
+
+void KdeNotify::showMetaData()
+{
+ QList<QVariant> n = prepareNotification();
+ if(!n.isEmpty())
+ notifier->callWithArgumentList(QDBus::NoBlock,"Notify",n);
}
diff --git a/src/plugins/General/kdenotify/kdenotify.h b/src/plugins/General/kdenotify/kdenotify.h
index 1d2466d9f..652e111eb 100644
--- a/src/plugins/General/kdenotify/kdenotify.h
+++ b/src/plugins/General/kdenotify/kdenotify.h
@@ -21,6 +21,9 @@
#ifndef KDENOTIFY_H
#define KDENOTIFY_H
+#include <QList>
+#include <QVariant>
+
#include "qmmpui/general.h"
#include "qmmp/qmmp.h"
@@ -34,8 +37,11 @@ public:
~KdeNotify();
private:
+ QList<QVariant> prepareNotification();
QDBusInterface *notifier;
+ QString m_ConfigDir;
int m_NotifyDelay;
+ bool m_ShowCovers;
private slots:
void showMetaData();
diff --git a/src/plugins/General/kdenotify/kdenotify.pro b/src/plugins/General/kdenotify/kdenotify.pro
index d9f8838fc..d350b513e 100644
--- a/src/plugins/General/kdenotify/kdenotify.pro
+++ b/src/plugins/General/kdenotify/kdenotify.pro
@@ -28,3 +28,14 @@ HEADERS += kdenotifyfactory.h \
settingsdialog.h
RESOURCES += translations/translations.qrc
FORMS += settingsdialog.ui
+
+TRANSLATIONS = translations/kdenotify_plugin_cs.ts \
+ translations/kdenotify_plugin_de.ts \
+ translations/kdenotify_plugin_zh_CN.ts \
+ translations/kdenotify_plugin_zh_TW.ts \
+ translations/kdenotify_plugin_ru.ts \
+ translations/kdenotify_plugin_pl.ts \
+ translations/kdenotify_plugin_uk_UA.ts \
+ translations/kdenotify_plugin_it.ts \
+ translations/kdenotify_plugin_tr.ts \
+ translations/kdenotify_plugin_lt.ts
diff --git a/src/plugins/General/kdenotify/settingsdialog.cpp b/src/plugins/General/kdenotify/settingsdialog.cpp
index 00f029871..f1acc18e7 100644
--- a/src/plugins/General/kdenotify/settingsdialog.cpp
+++ b/src/plugins/General/kdenotify/settingsdialog.cpp
@@ -33,6 +33,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) :
QSettings settings(Qmmp::configFile(),QSettings::IniFormat);
settings.beginGroup("Kde_Notifier");
ui->kNotifyDelaySpinBox->setValue(settings.value("notify_delay",10000).toInt());
+ ui->showCoversCheckBox->setChecked(settings.value("show_covers",true).toBool());
settings.endGroup();
}
@@ -46,6 +47,7 @@ void SettingsDialog::accept()
QSettings settings(Qmmp::configFile(),QSettings::IniFormat);
settings.beginGroup("Kde_Notifier");
settings.setValue("notify_delay",ui->kNotifyDelaySpinBox->value());
+ settings.setValue("show_covers",ui->showCoversCheckBox->isChecked());
settings.endGroup();
QDialog::accept();
}
diff --git a/src/plugins/General/kdenotify/settingsdialog.ui b/src/plugins/General/kdenotify/settingsdialog.ui
index d2ef67a20..0f7ec7f4f 100644
--- a/src/plugins/General/kdenotify/settingsdialog.ui
+++ b/src/plugins/General/kdenotify/settingsdialog.ui
@@ -31,7 +31,7 @@
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="2" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -41,6 +41,13 @@
</property>
</widget>
</item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="showCoversCheckBox">
+ <property name="text">
+ <string>Show covers</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<resources/>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_cs.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_cs.ts
index 7b4723f86..6981288e8 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_cs.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_cs.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Qmmp nyní přehrává:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation>- </translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation>- </translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>Notifikační modul pro KDE4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>O notifikačním modulu pro KDE</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Notifikační modul Qmmp pro KDE4</translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation>Prodleva notifikace [ms]:</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_de.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_de.ts
index 7c7c5e01d..ce391aaa9 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_de.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_de.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation type="unfinished">Qmmp spielt zurzeit:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation type="unfinished">von</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation type="unfinished">auf</translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>KDE-4-Benachrichtigungsmodul</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>Über KDE-4-Benachrichtigungsmodul</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>KDE-4-Benachrichtigungsmodul für Qmmp</translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation>Benachrichtigungsdauer (ms):</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_it.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_it.ts
index 8d027fd2e..c84ad5af7 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_it.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_it.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Qmmp ora in esecuzione:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation>di </translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation>su </translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>Plugin notificazione epr KIDE 4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>Info sul Plugin di notificazione per KDE</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Plugin di notificazione epr KDE 4</translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation>Ritardo notificazione [ms]: </translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_lt.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_lt.ts
index bddaba2f5..3bacbeba8 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_lt.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_lt.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Qmmp dabar groja:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation type="unfinished"></translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>KDE 4 pranešimų įskiepis</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>Apie qmmp KDE 4 pranešimų įskiepį</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Qmmp KDE 4 pranešimų įskiepis
@@ -51,5 +51,10 @@
<source>Notification delay [ms]:</source>
<translation>Pranešimo užlaikymas [ms]:</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_pl.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_pl.ts
index ae78dc51e..08ff804ee 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_pl.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_pl.ts
@@ -4,21 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <source>Now playing:</source>
- <translation type="obsolete">Teraz odtwarzane:</translation>
- </message>
- <message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Qmmp teraz odtwarza:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation>przez </translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation>na </translation>
</message>
@@ -26,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>Wtyczka powiadamiania KDE 4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>O wtyczce Powiadomienia KDE</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Wtyczka Powiadomienia KDE 4 dla Qmmp
@@ -55,5 +51,10 @@
<source>Notification delay [ms]:</source>
<translation>Czas zanikania [ms]:</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_ru.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_ru.ts
index 2eedcbf10..b1fc4be10 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_ru.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_ru.ts
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="1.1" language="ru">
-<defaultcodec></defaultcodec>
+<!DOCTYPE TS>
+<TS version="2.0" language="ru">
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Играет:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation>исполнитель</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation>на</translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>Модуль уведомлений KDE4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>О модуле уведомлений KDE4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Модуль уведомлений KDE4 для Qmmp
@@ -51,5 +51,10 @@
<source>Notification delay [ms]:</source>
<translation>Задержка уведомления [мс]:</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_tr.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_tr.ts
index f27b8c4e4..f06ed9846 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_tr.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_tr.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation type="unfinished"></translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation type="unfinished"></translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_uk_UA.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_uk_UA.ts
index f18ed40db..586556c03 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_uk_UA.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_uk_UA.ts
@@ -1,24 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="1.1" language="uk">
-<defaultcodec></defaultcodec>
+<!DOCTYPE TS>
+<TS version="2.0" language="uk">
<context>
<name>KdeNotify</name>
<message>
- <source>Now playing:</source>
- <translation type="obsolete">Відтворюється:</translation>
- </message>
- <message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation>Відтворюється:</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation>виконавець</translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation>на</translation>
</message>
@@ -26,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation>Модуль повідомлень KDE4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation>Про модуль повідомлень KDE4</translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation>Модуль повідомлень KDE4 для Qmmp
@@ -55,5 +51,10 @@
<source>Notification delay [ms]:</source>
<translation>Час показу [мс]:</translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_CN.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_CN.ts
index f27b8c4e4..f06ed9846 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_CN.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_CN.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation type="unfinished"></translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation type="unfinished"></translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>
diff --git a/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_TW.ts b/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_TW.ts
index f27b8c4e4..f06ed9846 100644
--- a/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_TW.ts
+++ b/src/plugins/General/kdenotify/translations/kdenotify_plugin_zh_TW.ts
@@ -4,17 +4,17 @@
<context>
<name>KdeNotify</name>
<message>
- <location filename="../kdenotify.cpp" line="63"/>
+ <location filename="../kdenotify.cpp" line="97"/>
<source>Qmmp now playing:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="73"/>
+ <location filename="../kdenotify.cpp" line="107"/>
<source>by </source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotify.cpp" line="78"/>
+ <location filename="../kdenotify.cpp" line="112"/>
<source>on </source>
<translation type="unfinished"></translation>
</message>
@@ -22,17 +22,17 @@
<context>
<name>KdeNotifyFactory</name>
<message>
- <location filename="../kdenotifyfactory.cpp" line="10"/>
+ <location filename="../kdenotifyfactory.cpp" line="30"/>
<source>KDE 4 notification plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="30"/>
+ <location filename="../kdenotifyfactory.cpp" line="50"/>
<source>About KDE Notification Plugin</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../kdenotifyfactory.cpp" line="31"/>
+ <location filename="../kdenotifyfactory.cpp" line="51"/>
<source>KDE 4 notification plugin for Qmmp
</source>
<translation type="unfinished"></translation>
@@ -50,5 +50,10 @@
<source>Notification delay [ms]:</source>
<translation type="unfinished"></translation>
</message>
+ <message>
+ <location filename="../settingsdialog.ui" line="47"/>
+ <source>Show covers</source>
+ <translation type="unfinished"></translation>
+ </message>
</context>
</TS>