diff --git a/src/devices/devicelister.h b/src/devices/devicelister.h index 25df653fd..d3ea5859d 100644 --- a/src/devices/devicelister.h +++ b/src/devices/devicelister.h @@ -71,5 +71,6 @@ protected: private slots: void ThreadStarted(); }; +Q_DECLARE_METATYPE(DeviceLister*); #endif // DEVICELISTER_H diff --git a/src/devices/devicemanager.cpp b/src/devices/devicemanager.cpp index 375a26f3c..17efcdb83 100644 --- a/src/devices/devicemanager.cpp +++ b/src/devices/devicemanager.cpp @@ -22,7 +22,10 @@ #include "ui/iconloader.h" #include +#include +const int DeviceManager::kDeviceIconSize = 32; +const int DeviceManager::kDeviceIconOverlaySize = 16; DeviceManager::DeviceInfo::DeviceInfo() : database_id_(-1), @@ -54,17 +57,19 @@ void DeviceManager::DeviceInfo::InitFromDb(const DeviceDatabaseBackend::Device & void DeviceManager::DeviceInfo::LoadIcon(const QString &filename) { // Try to load the icon with that exact name first - icon_ = IconLoader::Load(filename); + icon_name_ = filename; + icon_ = IconLoader::Load(icon_name_); // If that failed than try to guess if it's a phone or ipod. Fall back on // a usb memory stick icon. if (icon_.isNull()) { if (filename.contains("phone")) - icon_ = IconLoader::Load("phone"); + icon_name_ = "phone"; else if (filename.contains("ipod") || filename.contains("apple")) - icon_ = IconLoader::Load("multimedia-player-ipod-standard-monochrome"); + icon_name_ = "multimedia-player-ipod-standard-monochrome"; else - icon_ = IconLoader::Load("drive-removable-media-usb-pendrive"); + icon_name_ = "drive-removable-media-usb-pendrive"; + icon_ = IconLoader::Load(icon_name_); } } @@ -73,7 +78,8 @@ DeviceManager::DeviceManager(BackgroundThread* database, TaskManager* task_manager, QObject *parent) : QAbstractListModel(parent), database_(database), - task_manager_(task_manager) + task_manager_(task_manager), + not_connected_overlay_(IconLoader::Load("edit-delete")) { // Create the backend in the database thread backend_ = database_->CreateInThread(); @@ -107,20 +113,42 @@ QVariant DeviceManager::data(const QModelIndex& index, int role) const { const DeviceInfo& info = devices_[index.row()]; switch (role) { - case Qt::DisplayRole: { - QString text = info.friendly_name_.isEmpty() ? info.unique_id_ : info.friendly_name_; - if (info.size_) - text = text + QString(" (%1)").arg(Utilities::PrettySize(info.size_)); - return text; - } + case Qt::DisplayRole: { + QString text = info.friendly_name_.isEmpty() ? info.unique_id_ : info.friendly_name_; + if (info.size_) + text = text + QString(" (%1)").arg(Utilities::PrettySize(info.size_)); + return text; + } - case Qt::DecorationRole: { - bool connected = info.lister_; - return info.icon_.pixmap(22, connected ? QIcon::Normal : QIcon::Disabled); - } + case Qt::DecorationRole: { + QPixmap pixmap = info.icon_.pixmap(kDeviceIconSize); - default: - return QVariant(); + if (!info.lister_) { + // Disconnected but remembered + QPainter p(&pixmap); + p.drawPixmap(kDeviceIconSize - kDeviceIconOverlaySize, + kDeviceIconSize - kDeviceIconOverlaySize, + not_connected_overlay_.pixmap(kDeviceIconOverlaySize)); + } + + return pixmap; + } + + case Role_Lister: + return QVariant::fromValue(info.lister_); + + case Role_UniqueId: + return info.unique_id_; + + case Role_State: + if (info.device_) + return State_Connected; + if (info.lister_) + return State_NotConnected; + return State_Remembered; + + default: + return QVariant(); } } diff --git a/src/devices/devicemanager.h b/src/devices/devicemanager.h index 0ae0cd152..7b4a00fa9 100644 --- a/src/devices/devicemanager.h +++ b/src/devices/devicemanager.h @@ -19,6 +19,7 @@ #include "devicedatabasebackend.h" #include "core/backgroundthread.h" +#include "library/librarymodel.h" #include #include @@ -38,6 +39,21 @@ public: QObject* parent = 0); ~DeviceManager(); + enum Role { + Role_State = LibraryModel::LastRole, + Role_UniqueId, + Role_Lister, + }; + + enum State { + State_Remembered, + State_NotConnected, + State_Connected, + }; + + static const int kDeviceIconSize; + static const int kDeviceIconOverlaySize; + BackgroundThread* database() const { return database_; } TaskManager* task_manager() const { return task_manager_; } @@ -83,6 +99,8 @@ private: QString unique_id_; QString friendly_name_; quint64 size_; + + QString icon_name_; QIcon icon_; }; @@ -96,6 +114,8 @@ private: DeviceDatabaseBackend* backend_; TaskManager* task_manager_; + QIcon not_connected_overlay_; + QList listers_; QList devices_; }; diff --git a/src/devices/deviceview.cpp b/src/devices/deviceview.cpp index 4bf41aa13..d717013c4 100644 --- a/src/devices/deviceview.cpp +++ b/src/devices/deviceview.cpp @@ -18,16 +18,85 @@ #include "devicemanager.h" #include "deviceview.h" #include "core/mergedproxymodel.h" -#include "library/libraryview.h" #include "library/librarymodel.h" #include "ui/iconloader.h" #include #include +#include #include #include +const int DeviceItemDelegate::kIconPadding = 6; + +DeviceItemDelegate::DeviceItemDelegate(QObject *parent) + : LibraryItemDelegate(parent) +{ +} + +void DeviceItemDelegate::paint(QPainter* p, const QStyleOptionViewItem& opt, const QModelIndex& index) const { + // Is it a device or a library item? + if (index.data(DeviceManager::Role_State).isNull()) { + LibraryItemDelegate::paint(p, opt, index); + return; + } + + // Draw the background + QStyledItemDelegate::paint(p, opt, QModelIndex()); + + p->save(); + + // Font for the status line + QFont status_font(opt.font); + status_font.setItalic(true); + status_font.setPointSize(status_font.pointSize() - 2); + + const int text_height = QFontMetrics(opt.font).height() + + QFontMetrics(status_font).height(); + + QRect line1(opt.rect); + QRect line2(opt.rect); + line1.setTop(line1.top() + (opt.rect.height() - text_height) / 2); + line2.setTop(line1.top() + QFontMetrics(opt.font).height()); + line1.setLeft(line1.left() + DeviceManager::kDeviceIconSize + kIconPadding); + line2.setLeft(line2.left() + DeviceManager::kDeviceIconSize + kIconPadding); + + // Change the color for selected items + if (opt.state & QStyle::State_Selected) { + p->setPen(opt.palette.color(QPalette::HighlightedText)); + } + + // Draw the icon + p->drawPixmap(opt.rect.topLeft(), index.data(Qt::DecorationRole).value()); + + // Draw the first line (device name) + p->drawText(line1, Qt::AlignLeft | Qt::AlignTop, index.data().toString()); + + // Draw the second line (status) + p->setFont(status_font); + + DeviceManager::State state = + static_cast(index.data(DeviceManager::Role_State).toInt()); + switch (state) { + case DeviceManager::State_Remembered: + p->drawText(line2, Qt::AlignLeft | Qt::AlignTop, tr("Not connected")); + break; + + case DeviceManager::State_NotConnected: + p->drawText(line2, Qt::AlignLeft | Qt::AlignTop, tr("Double click to open")); + break; + + case DeviceManager::State_Connected: + p->drawText(line2, Qt::AlignLeft | Qt::AlignTop, tr("Connected")); + break; + } + + p->restore(); +} + + + DeviceView::DeviceView(QWidget* parent) : AutoExpandingTreeView(parent), manager_(NULL), @@ -40,7 +109,7 @@ DeviceView::DeviceView(QWidget* parent) disconnect_action_ = menu_->addAction( IconLoader::Load("list-remove"), tr("Disconnect device"), this, SLOT(Disconnect())); - setItemDelegate(new LibraryItemDelegate(this)); + setItemDelegate(new DeviceItemDelegate(this)); SetExpandOnReset(false); } @@ -92,6 +161,8 @@ void DeviceView::Connect() { QModelIndex sort_idx = sort_model_->mapFromSource(device_idx); boost::shared_ptr device = manager_->Connect(device_idx.row()); + if (!device) + return; QSortFilterProxyModel* sort_model = new QSortFilterProxyModel(device->model()); sort_model->setSourceModel(device->model()); diff --git a/src/devices/deviceview.h b/src/devices/deviceview.h index 2856cd128..3bb01ba73 100644 --- a/src/devices/deviceview.h +++ b/src/devices/deviceview.h @@ -17,6 +17,7 @@ #ifndef DEVICEVIEW_H #define DEVICEVIEW_H +#include "library/libraryview.h" #include "widgets/autoexpandingtreeview.h" class QAction; @@ -26,6 +27,16 @@ class QSortFilterProxyModel; class DeviceManager; class MergedProxyModel; +class DeviceItemDelegate : public LibraryItemDelegate { +public: + DeviceItemDelegate(QObject* parent); + + static const int kIconPadding; + + void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; + + class DeviceView : public AutoExpandingTreeView { Q_OBJECT diff --git a/src/library/librarymodel.h b/src/library/librarymodel.h index 3e1b3f6ea..d87ad1c7f 100644 --- a/src/library/librarymodel.h +++ b/src/library/librarymodel.h @@ -47,6 +47,8 @@ class LibraryModel : public SimpleTreeModel { Role_SortText, Role_Key, Role_Artist, + + LastRole }; // These values get saved in QSettings - don't change them diff --git a/src/translations/ar.po b/src/translations/ar.po index 8af3c2047..808a598a0 100644 --- a/src/translations/ar.po +++ b/src/translations/ar.po @@ -351,6 +351,9 @@ msgstr "" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -945,6 +951,9 @@ msgstr "" msgid "None" msgstr "لا شيء" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "لا يوجد محتوى كافي" diff --git a/src/translations/cs.po b/src/translations/cs.po index 0c3dffbce..5a447edbe 100644 --- a/src/translations/cs.po +++ b/src/translations/cs.po @@ -352,6 +352,9 @@ msgstr "Nastavit knihovnu..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Zkopírovat do knihovny..." @@ -495,6 +498,9 @@ msgstr "Nemíchat" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -949,6 +955,9 @@ msgstr "" msgid "None" msgstr "Žádný" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Nedostatek obsahu" diff --git a/src/translations/da.po b/src/translations/da.po index f9b168a64..d73a46124 100644 --- a/src/translations/da.po +++ b/src/translations/da.po @@ -352,6 +352,9 @@ msgstr "Indstil bibliotek..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Kopiér til bibliotek..." @@ -495,6 +498,9 @@ msgstr "Bland ikke" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -950,6 +956,9 @@ msgstr "" msgid "None" msgstr "Ingen" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Ikke nok indhold" diff --git a/src/translations/de.po b/src/translations/de.po index 82703ac70..bf7005ae0 100644 --- a/src/translations/de.po +++ b/src/translations/de.po @@ -351,6 +351,9 @@ msgstr "Musiksammlung einrichten..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "In die Musiksammlung kopieren..." @@ -496,6 +499,9 @@ msgstr "Kein Zufall" msgid "Don't stop!" msgstr "Nicht anhalten!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Stück doppelklicken um Wiedergabeliste zu ersetzen" @@ -953,6 +959,9 @@ msgstr "" msgid "None" msgstr "Nichts" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Nicht genügend Inhalt" diff --git a/src/translations/el.po b/src/translations/el.po index d37e26764..f8c0b488c 100644 --- a/src/translations/el.po +++ b/src/translations/el.po @@ -359,6 +359,9 @@ msgstr "Παραμετροποίηση της βιβλιοθήκης" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Αντιγραφή στην βιβλιοθήκη..." @@ -504,6 +507,9 @@ msgstr "Χωρίς ανακάτεμα" msgid "Don't stop!" msgstr "Μην σταματάς!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Διπλό κλικ σε ένα τραγούδι θα καθαρίσει πρώτα την λίστα αναπαραγωγής" @@ -960,6 +966,9 @@ msgstr "" msgid "None" msgstr "Κανένα" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Δεν υπάρχει αρκετό περιεχόμενο" diff --git a/src/translations/en_CA.po b/src/translations/en_CA.po index 0d6d7d311..c614dbbf6 100644 --- a/src/translations/en_CA.po +++ b/src/translations/en_CA.po @@ -351,6 +351,9 @@ msgstr "Configure library..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copy to library..." @@ -496,6 +499,9 @@ msgstr "Don't shuffle" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Double-clicking a song clears the playlist first" @@ -950,6 +956,9 @@ msgstr "" msgid "None" msgstr "None" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Not enough content" diff --git a/src/translations/en_GB.po b/src/translations/en_GB.po index 0e5978605..4d14ecf61 100644 --- a/src/translations/en_GB.po +++ b/src/translations/en_GB.po @@ -351,6 +351,9 @@ msgstr "Configure library..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copy to library..." @@ -494,6 +497,9 @@ msgstr "Don't shuffle" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "None" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Not enough content" diff --git a/src/translations/es.po b/src/translations/es.po index 90c70db17..0461efffb 100644 --- a/src/translations/es.po +++ b/src/translations/es.po @@ -353,6 +353,9 @@ msgstr "Configurar colección..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copiar a la colección..." @@ -498,6 +501,9 @@ msgstr "No Mezclar" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" "Hacer doble clic sobre una canción limpia la lista de reproducción primero" @@ -958,6 +964,9 @@ msgstr "" msgid "None" msgstr "Ninguno" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "No hay suficiente contenido" diff --git a/src/translations/fi.po b/src/translations/fi.po index 893c9bc33..59f611dc1 100644 --- a/src/translations/fi.po +++ b/src/translations/fi.po @@ -351,6 +351,9 @@ msgstr "Kirjaston asetukset..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Kopioi kirjastoon" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "Älä lopeta!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/fr.po b/src/translations/fr.po index f601eb961..f5969d92d 100644 --- a/src/translations/fr.po +++ b/src/translations/fr.po @@ -352,6 +352,9 @@ msgstr "Configurer votre bibliothèque..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copier dans la bilbiothèque..." @@ -495,6 +498,9 @@ msgstr "Ne pas mélanger" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -953,6 +959,9 @@ msgstr "" msgid "None" msgstr "Aucun" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Pas assez de contenu" diff --git a/src/translations/gl.po b/src/translations/gl.po index 65a9ffe76..752f1736c 100644 --- a/src/translations/gl.po +++ b/src/translations/gl.po @@ -351,6 +351,9 @@ msgstr "Configurar a biblioteca..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copiar para a biblioteca" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Conteúdo insuficiente" diff --git a/src/translations/it.po b/src/translations/it.po index 1bcc5f2c7..204bd50d1 100644 --- a/src/translations/it.po +++ b/src/translations/it.po @@ -352,6 +352,9 @@ msgstr "Configura raccolta..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copia nella raccolta..." @@ -497,6 +500,9 @@ msgstr "Non mescolare" msgid "Don't stop!" msgstr "Non fermare!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Il doppio clic su un brano svuota la scaletta" @@ -956,6 +962,9 @@ msgstr "" msgid "None" msgstr "Nessuna" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Contenuti non sufficienti" diff --git a/src/translations/kk.po b/src/translations/kk.po index 71d69dd95..9a943d7a7 100644 --- a/src/translations/kk.po +++ b/src/translations/kk.po @@ -351,6 +351,9 @@ msgstr "" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/nb.po b/src/translations/nb.po index 56677eec5..34f525ec7 100644 --- a/src/translations/nb.po +++ b/src/translations/nb.po @@ -351,6 +351,9 @@ msgstr "Sett opp bibliotek..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Kopier til bibliotek..." @@ -494,6 +497,9 @@ msgstr "Ikke stokk" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -948,6 +954,9 @@ msgstr "" msgid "None" msgstr "Ingen" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Ikke nok innhold" diff --git a/src/translations/oc.po b/src/translations/oc.po index 2bf676d35..a5ee85a4e 100644 --- a/src/translations/oc.po +++ b/src/translations/oc.po @@ -351,6 +351,9 @@ msgstr "" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -945,6 +951,9 @@ msgstr "" msgid "None" msgstr "Pas cap" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/pl.po b/src/translations/pl.po index b06f94afb..7e7242fa3 100644 --- a/src/translations/pl.po +++ b/src/translations/pl.po @@ -352,6 +352,9 @@ msgstr "Konfiguruj bibliotekę..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Skopiuj do biblioteki..." @@ -495,6 +498,9 @@ msgstr "Nie losuj" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "Brak" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/pt.po b/src/translations/pt.po index 846d9e77a..80dd887ec 100644 --- a/src/translations/pt.po +++ b/src/translations/pt.po @@ -356,6 +356,9 @@ msgstr "Configurar biblioteca..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copiar para a biblioteca..." @@ -501,6 +504,9 @@ msgstr "Não baralhar" msgid "Don't stop!" msgstr "Não parar!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Duplo clique na canção apaga a lista de reprodução" @@ -957,6 +963,9 @@ msgstr "" msgid "None" msgstr "Nenhum" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Conteúdo insuficiente" diff --git a/src/translations/pt_BR.po b/src/translations/pt_BR.po index 6c63ec5f0..3f6f4cf07 100644 --- a/src/translations/pt_BR.po +++ b/src/translations/pt_BR.po @@ -354,6 +354,9 @@ msgstr "Configurar biblioteca" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copiar para biblioteca..." @@ -499,6 +502,9 @@ msgstr "Não misturar" msgid "Don't stop!" msgstr "Não parar!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Duplo clique em música limpa a lista de reprodução primeiro" @@ -957,6 +963,9 @@ msgstr "" msgid "None" msgstr "Nenhum" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Conteúdo insuficiente" diff --git a/src/translations/ro.po b/src/translations/ro.po index 81834a948..8b246dce4 100644 --- a/src/translations/ro.po +++ b/src/translations/ro.po @@ -351,6 +351,9 @@ msgstr "Configurează biblioteca..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Copiază în bibliotecă..." @@ -494,6 +497,9 @@ msgstr "Nu amesteca" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -946,6 +952,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Nu este destul conținut" diff --git a/src/translations/ru.po b/src/translations/ru.po index c046dbe60..180b51128 100644 --- a/src/translations/ru.po +++ b/src/translations/ru.po @@ -350,6 +350,9 @@ msgstr "Настроить коллекцию..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Копировать в коллекцию..." @@ -495,6 +498,9 @@ msgstr "Не перемешивать" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Двойной щелчок мышью на композиции стирает список воспроизведения" @@ -951,6 +957,9 @@ msgstr "" msgid "None" msgstr "Нет" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Не достаточно содержания" diff --git a/src/translations/sk.po b/src/translations/sk.po index 1cf804dbc..8eb7baa9c 100644 --- a/src/translations/sk.po +++ b/src/translations/sk.po @@ -356,6 +356,9 @@ msgstr "Nastaviť zbierku..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Skopírovať do zbierky..." @@ -501,6 +504,9 @@ msgstr "Nezamiešavať" msgid "Don't stop!" msgstr "Neprestávať!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Dvojklik na pieseň najprv vymaže playlist" @@ -956,6 +962,9 @@ msgstr "" msgid "None" msgstr "Nijako" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Nedostatok obsahu" diff --git a/src/translations/sv.po b/src/translations/sv.po index e4af0aa02..a09d9f1d6 100644 --- a/src/translations/sv.po +++ b/src/translations/sv.po @@ -351,6 +351,9 @@ msgstr "Ställ in bibliotek..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Kopiera till bibliotek..." @@ -496,6 +499,9 @@ msgstr "Slumpa inte" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Dubbelklick på en sång rensar spellistan först" @@ -950,6 +956,9 @@ msgstr "Inga träffar hittades. Tom sökrutan för att visa hela spellistan igen msgid "None" msgstr "Inga" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Inte tillräckligt med innehåll" diff --git a/src/translations/tr.po b/src/translations/tr.po index 82b1c5c6d..21da1df65 100644 --- a/src/translations/tr.po +++ b/src/translations/tr.po @@ -351,6 +351,9 @@ msgstr "Kütüphaneyi düzenle..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -947,6 +953,9 @@ msgstr "" msgid "None" msgstr "Hiçbiri" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/translations.pot b/src/translations/translations.pot index 7d0a11670..59d954e4a 100644 --- a/src/translations/translations.pot +++ b/src/translations/translations.pot @@ -342,6 +342,9 @@ msgstr "" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -485,6 +488,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -936,6 +942,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/uk.po b/src/translations/uk.po index 87decd4eb..886de4d26 100644 --- a/src/translations/uk.po +++ b/src/translations/uk.po @@ -355,6 +355,9 @@ msgstr "Налаштувати фонотеку" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "Скопіювати до фонотеки..." @@ -500,6 +503,9 @@ msgstr "Не перемішувати" msgid "Don't stop!" msgstr "Не зупиняти!" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "Подвійнне клацання на композиції спочатку очищає список відтворення" @@ -956,6 +962,9 @@ msgstr "" msgid "None" msgstr "Немає" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "Не достатньо вмісту" diff --git a/src/translations/zh_CN.po b/src/translations/zh_CN.po index 2aaad3c35..3f4f45b2e 100644 --- a/src/translations/zh_CN.po +++ b/src/translations/zh_CN.po @@ -351,6 +351,9 @@ msgstr "配置乐库..." msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -945,6 +951,9 @@ msgstr "" msgid "None" msgstr "无" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr "" diff --git a/src/translations/zh_TW.po b/src/translations/zh_TW.po index c7f43a4fe..a4169766b 100644 --- a/src/translations/zh_TW.po +++ b/src/translations/zh_TW.po @@ -351,6 +351,9 @@ msgstr "" msgid "Connect device" msgstr "" +msgid "Connected" +msgstr "" + msgid "Copy to library..." msgstr "" @@ -494,6 +497,9 @@ msgstr "" msgid "Don't stop!" msgstr "" +msgid "Double click to open" +msgstr "" + msgid "Double-clicking a song clears the playlist first" msgstr "" @@ -945,6 +951,9 @@ msgstr "" msgid "None" msgstr "" +msgid "Not connected" +msgstr "" + msgid "Not enough content" msgstr ""