From e3ab83869f4b74e485964720f941fed22ce035ea Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 1 Oct 2011 12:33:51 +0000 Subject: implemented converter settings, fixed build git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2364 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/General.pro | 3 +- src/plugins/General/converter/CMakeLists.txt | 67 +++++++++ src/plugins/General/converter/converter.cpp | 25 +++- src/plugins/General/converter/converter.pro | 28 ++-- src/plugins/General/converter/converterdialog.cpp | 61 +++++++- src/plugins/General/converter/converterdialog.h | 10 ++ src/plugins/General/converter/converterdialog.ui | 17 ++- src/plugins/General/converter/converterfactory.cpp | 6 +- .../converter/translations/converter_plugin_cs.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_de.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_es.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_it.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_ja.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_lt.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_nl.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_pl.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_ru.ts | 165 +++++++++++++++++++++ .../converter/translations/converter_plugin_tr.ts | 165 +++++++++++++++++++++ .../translations/converter_plugin_uk_UA.ts | 165 +++++++++++++++++++++ .../translations/converter_plugin_zh_CN.ts | 165 +++++++++++++++++++++ .../translations/converter_plugin_zh_TW.ts | 165 +++++++++++++++++++++ .../converter/translations/translations.qrc | 18 +++ 22 files changed, 2354 insertions(+), 26 deletions(-) create mode 100644 src/plugins/General/converter/CMakeLists.txt create mode 100644 src/plugins/General/converter/translations/converter_plugin_cs.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_de.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_es.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_it.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_ja.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_lt.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_nl.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_pl.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_ru.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_tr.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_uk_UA.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_zh_CN.ts create mode 100644 src/plugins/General/converter/translations/converter_plugin_zh_TW.ts create mode 100644 src/plugins/General/converter/translations/translations.qrc (limited to 'src') diff --git a/src/plugins/General/General.pro b/src/plugins/General/General.pro index 4fb1e2f19..de28bea17 100644 --- a/src/plugins/General/General.pro +++ b/src/plugins/General/General.pro @@ -8,5 +8,6 @@ unix:SUBDIRS += mpris \ udisks \ hotkey \ covermanager \ - kdenotify + kdenotify \ + converter TEMPLATE = subdirs diff --git a/src/plugins/General/converter/CMakeLists.txt b/src/plugins/General/converter/CMakeLists.txt new file mode 100644 index 000000000..e3f28412c --- /dev/null +++ b/src/plugins/General/converter/CMakeLists.txt @@ -0,0 +1,67 @@ +project(libconverter) + +cmake_minimum_required(VERSION 2.4.7) + +include(${QT_USE_FILE}) + +if(COMMAND cmake_policy) +cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + + +# qt plugin +ADD_DEFINITIONS( -Wall ) +ADD_DEFINITIONS(${QT_DEFINITIONS}) +ADD_DEFINITIONS(-DQT_PLUGIN) +ADD_DEFINITIONS(-DQT_NO_DEBUG) +ADD_DEFINITIONS(-DQT_SHARED) +ADD_DEFINITIONS(-DQT_THREAD) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +SET(QT_INCLUDES + ${QT_INCLUDES} + ${CMAKE_CURRENT_SOURCE_DIR}/../../../ +) + +# libqmmpui & libqmmp +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) +link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) + +SET(libconverter_SRCS + converterfactory.cpp + converter.cpp + converterhelper.cpp + converterdialog.cpp +) + +SET(libconverter_MOC_HDRS + converterfactory.h + converter.h + converterhelper.h + converterdialog.h +) + +SET(libconverter_RCCS + translations/translations.qrc) + +QT4_ADD_RESOURCES(libconverter_RCC_SRCS ${libconverter_RCCS}) + +QT4_WRAP_CPP(libconverter_MOC_SRCS ${libconverter_MOC_HDRS}) + +# user interface + +SET(libconverter_UIS + converterdialog.ui +) + +QT4_WRAP_UI(libconverter_UIS_H ${libconverter_UIS}) +# Don't forget to include output directory, otherwise +# the UI file won't be wrapped! +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +ADD_LIBRARY(converter MODULE ${libconverter_SRCS} ${libconverter_MOC_SRCS} ${libconverter_UIS_H} ${libconverter_RCC_SRCS}) +add_dependencies(converter qmmpui) +target_link_libraries(converter ${QT_LIBRARIES} -lqmmpui -lqmmp) +install(TARGETS converter DESTINATION ${LIB_DIR}/qmmp/General) diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp index 23ce7599f..3a205472f 100644 --- a/src/plugins/General/converter/converter.cpp +++ b/src/plugins/General/converter/converter.cpp @@ -22,7 +22,11 @@ #include #include #include +#include +#include #include +#include +#include #include #include "converter.h" @@ -85,10 +89,29 @@ void Converter::add(const QString &url) void Converter::run() { + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + QString music_path = QDesktopServices::storageLocation(QDesktopServices::MusicLocation); + QString path = settings.value("Converter/out_dir", music_path).toString(); + QString pattern = settings.value("Converter/file_name","%p - %t").toString(); + MetaDataFormatter formatter(pattern); + while(!m_decoders.isEmpty()) { Decoder *decoder = m_decoders.dequeue(); AudioParameters ap = decoder->audioParameters(); + QString url = m_inputs[decoder]->url(); + + QList list = MetaDataManager::instance()->createPlayList(url); + + if(list.isEmpty()) + { + //ignore + } + + QString name = formatter.parse(list[0]->metaData(), list[0]->length()); + QString full_path = path + "/" + name + ".ogg"; + QString command = "oggenc -q 1 -o %f -"; + command.replace("%f", "\"" + full_path + "\""); char wave_header[] = { 0x52, 0x49, 0x46, 0x46, //"RIFF" 0x00, 0x00, 0x00, 0x00, //(file size) - 8 @@ -116,7 +139,7 @@ void Converter::run() memcpy(&wave_header[40], &size, 4); //FILE *enc_pipe = fopen("/mnt/win_e/out.wav", "w"); - FILE *enc_pipe = popen("oggenc -q 1 -o \"/mnt/win_e/out 55.ogg\" -", "w"); + FILE *enc_pipe = popen(qPrintable(command), "w"); if(!enc_pipe) { qWarning("Converter: unable to open pipe"); diff --git a/src/plugins/General/converter/converter.pro b/src/plugins/General/converter/converter.pro index 24fcf00ce..32a60eb82 100644 --- a/src/plugins/General/converter/converter.pro +++ b/src/plugins/General/converter/converter.pro @@ -16,20 +16,20 @@ unix:LIBS += -lqmmpui -lqmmp win32:QMAKE_LIBDIR += ../../../../bin win32:LIBS += -lqmmpui0 -lqmmp0 -#TRANSLATIONS = translations/converter_plugin_cs.ts \ -# translations/converter_plugin_de.ts \ -# translations/converter_plugin_zh_CN.ts \ -# translations/converter_plugin_zh_TW.ts \ -# translations/converter_plugin_ru.ts \ -# translations/converter_plugin_pl.ts \ -# translations/converter_plugin_uk_UA.ts \ -# translations/converter_plugin_it.ts \ -# translations/converter_plugin_tr.ts \ -# translations/converter_plugin_lt.ts \ -# translations/converter_plugin_nl.ts \ -# translations/converter_plugin_ja.ts \ -# translations/converter_plugin_es.ts -#RESOURCES = translations/translations.qrc +TRANSLATIONS = translations/converter_plugin_cs.ts \ + translations/converter_plugin_de.ts \ + translations/converter_plugin_zh_CN.ts \ + translations/converter_plugin_zh_TW.ts \ + translations/converter_plugin_ru.ts \ + translations/converter_plugin_pl.ts \ + translations/converter_plugin_uk_UA.ts \ + translations/converter_plugin_it.ts \ + translations/converter_plugin_tr.ts \ + translations/converter_plugin_lt.ts \ + translations/converter_plugin_nl.ts \ + translations/converter_plugin_ja.ts \ + translations/converter_plugin_es.ts +RESOURCES = translations/translations.qrc unix{ isEmpty(LIB_DIR){ LIB_DIR = /lib diff --git a/src/plugins/General/converter/converterdialog.cpp b/src/plugins/General/converter/converterdialog.cpp index 501d92ead..d2950961c 100644 --- a/src/plugins/General/converter/converterdialog.cpp +++ b/src/plugins/General/converter/converterdialog.cpp @@ -18,16 +18,18 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include +#include +#include #include #include +#include #include "converterdialog.h" ConverterDialog::ConverterDialog(QList items, QWidget *parent) : QDialog(parent) { ui.setupUi(this); - MetaDataFormatter formatter("%p%if(%p&%t, - ,)%t - %l"); - foreach(PlayListItem *item , items) { QString text = formatter.parse(item); @@ -36,6 +38,13 @@ ConverterDialog::ConverterDialog(QList items, QWidget *parent) listItem->setCheckState(Qt::Checked); ui.itemsListWidget->addItem(listItem); } + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("Converter"); + QString music_path = QDesktopServices::storageLocation(QDesktopServices::MusicLocation); + ui.outDirEdit->setText(settings.value("out_dir", music_path).toString()); + ui.outFileEdit->setText(settings.value("file_name","%p - %t").toString()); + settings.endGroup(); + createMenus(); } QStringList ConverterDialog::selectedUrls() const @@ -48,3 +57,51 @@ QStringList ConverterDialog::selectedUrls() const } return out; } + +void ConverterDialog::on_dirButton_clicked() +{ + QString dir = FileDialog::getExistingDirectory(this, tr("Choose a directory"), + ui.outDirEdit->text()); + if(!dir.isEmpty()) + ui.outDirEdit->setText(dir); +} + +void ConverterDialog::accept() +{ + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("Converter"); + settings.setValue("out_dir", ui.outDirEdit->text()); + settings.value("file_name", ui.outFileEdit->text()); + settings.endGroup(); + QDialog::accept(); +} + +void ConverterDialog::createMenus() +{ + QMenu *menu = new QMenu(this); + menu->addAction(tr("Artist"))->setData("%p"); + menu->addAction(tr("Album"))->setData("%a"); + menu->addAction(tr("Title"))->setData("%t"); + menu->addAction(tr("Track number"))->setData("%n"); + menu->addAction(tr("Two-digit track number"))->setData("%NN"); + menu->addAction(tr("Genre"))->setData("%g"); + menu->addAction(tr("Comment"))->setData("%c"); + menu->addAction(tr("Composer"))->setData("%C"); + menu->addAction(tr("Duration"))->setData("%l"); + menu->addAction(tr("Disc number"))->setData("%D"); + menu->addAction(tr("File name"))->setData("%f"); + menu->addAction(tr("File path"))->setData("%F"); + menu->addAction(tr("Year"))->setData("%y"); + menu->addAction(tr("Condition"))->setData("%if(%p&%t,%p - %t,%f)"); + ui.fileNameButton->setMenu(menu); + ui.fileNameButton->setPopupMode(QToolButton::InstantPopup); + connect(menu, SIGNAL(triggered(QAction *)), SLOT(addTitleString(QAction *))); +} + +void ConverterDialog::addTitleString(QAction *a) +{ + if (ui.outFileEdit->cursorPosition () < 1) + ui.outFileEdit->insert(a->data().toString()); + else + ui.outFileEdit->insert(" - "+a->data().toString()); +} diff --git a/src/plugins/General/converter/converterdialog.h b/src/plugins/General/converter/converterdialog.h index 154357176..025b209e8 100644 --- a/src/plugins/General/converter/converterdialog.h +++ b/src/plugins/General/converter/converterdialog.h @@ -25,6 +25,7 @@ #include #include "ui_converterdialog.h" +class QAction; class PlayListItem; /** @@ -37,7 +38,16 @@ public: explicit ConverterDialog(QList items, QWidget *parent = 0); QStringList selectedUrls() const; +public slots: + virtual void accept(); + +private slots: + void on_dirButton_clicked(); + void addTitleString(QAction *a); + private: + void createMenus(); + Ui::ConverterDialog ui; }; diff --git a/src/plugins/General/converter/converterdialog.ui b/src/plugins/General/converter/converterdialog.ui index b93390499..c2a593c47 100644 --- a/src/plugins/General/converter/converterdialog.ui +++ b/src/plugins/General/converter/converterdialog.ui @@ -11,7 +11,7 @@ - Dialog + Converter Settings @@ -60,17 +60,17 @@ - Preseed: + Preset: - + - + - CheckBox + Overwrite existing files @@ -95,6 +95,13 @@ + + + + ... + + + diff --git a/src/plugins/General/converter/converterfactory.cpp b/src/plugins/General/converter/converterfactory.cpp index a452d32b9..9dac2a1b7 100644 --- a/src/plugins/General/converter/converterfactory.cpp +++ b/src/plugins/General/converter/converterfactory.cpp @@ -27,7 +27,7 @@ const GeneralProperties ConverterFactory::properties() const GeneralProperties properties; properties.name = tr("Converter Plugin"); properties.shortName = "converter"; - properties.hasAbout = true; + properties.hasAbout = false; properties.hasSettings = false; properties.visibilityControl = false; return properties; @@ -46,10 +46,10 @@ QDialog *ConverterFactory::createConfigDialog(QWidget *parent) void ConverterFactory::showAbout(QWidget *parent) { - /*QMessageBox::about (parent, tr("About Converter Plugin"), + QMessageBox::about (parent, tr("About Converter Plugin"), tr("Qmmp Converter Plugin")+"\n"+ tr("")+"\n"+ - tr("Written by: Ilya Kotov "));*/ + tr("Written by: Ilya Kotov ")); } QTranslator *ConverterFactory::createTranslator(QObject *parent) diff --git a/src/plugins/General/converter/translations/converter_plugin_cs.ts b/src/plugins/General/converter/translations/converter_plugin_cs.ts new file mode 100644 index 000000000..6fb78b176 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_cs.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + + + + + Choose a directory + Vyberte adresář + + + + Artist + Umělec + + + + Album + Album + + + + Title + Název + + + + Track number + Číslo stopy + + + + Two-digit track number + Dvoumístné číslo stopy + + + + Genre + Žánr + + + + Comment + Poznámka + + + + Composer + Skladatel + + + + Duration + Délka + + + + Disc number + Číslo disku + + + + File name + Název souboru + + + + File path + Cesta k souboru + + + + Year + Rok + + + + Condition + Stav + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilja Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_de.ts b/src/plugins/General/converter/translations/converter_plugin_de.ts new file mode 100644 index 000000000..a501923e5 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_de.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + + + + + Choose a directory + Ein Verzeichnis wählen + + + + Artist + Interpret + + + + Album + Album + + + + Title + Titel + + + + Track number + Stücknummer + + + + Two-digit track number + Zweistellige Stücknummer + + + + Genre + Genre + + + + Comment + Kommentar + + + + Composer + Komponist + + + + Duration + Abspieldauer + + + + Disc number + CD-Nummer + + + + File name + Dateiname + + + + File path + Dateipfad + + + + Year + Jahr + + + + Condition + Zustand + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_es.ts b/src/plugins/General/converter/translations/converter_plugin_es.ts new file mode 100644 index 000000000..1aeb826bd --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_es.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + Elija un directorio + + + + Artist + Intérprete + + + + Album + Album + + + + Title + Título + + + + Track number + Número de pista + + + + Two-digit track number + Número de pista con dos cifras + + + + Genre + Género + + + + Comment + Comentario + + + + Composer + Compositor + + + + Duration + Duración + + + + Disc number + Número de disco + + + + File name + Nombre del archivo + + + + File path + Ruta del archivo + + + + Year + Año + + + + Condition + Condición + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Escrito por: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_it.ts b/src/plugins/General/converter/translations/converter_plugin_it.ts new file mode 100644 index 000000000..55d6b742f --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_it.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + Scegli una cartella + + + + Artist + Interprete + + + + Album + Album + + + + Title + Titolo + + + + Track number + Numero traccia + + + + Two-digit track number + Numero traccia su due cifre + + + + Genre + Genere + + + + Comment + Commento + + + + Composer + Compositore + + + + Duration + Durata + + + + Disc number + Disco num. + + + + File name + Nome documento + + + + File path + + + + + Year + Anno + + + + Condition + PErcorso documento + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autore: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_ja.ts b/src/plugins/General/converter/translations/converter_plugin_ja.ts new file mode 100644 index 000000000..a72951862 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_ja.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + ディレクトリを選択 + + + + Artist + アーティスト + + + + Album + アルバム + + + + Title + タイトル + + + + Track number + トラック番号 + + + + Two-digit track number + トラック番号 数字2桁 + + + + Genre + ジャンル + + + + Comment + コメント + + + + Composer + 作曲者 + + + + Duration + 演奏時間 + + + + Disc number + ディスク番号 + + + + File name + ファイル名 + + + + File path + ファイルパス + + + + Year + + + + + Condition + 定番 + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_lt.ts b/src/plugins/General/converter/translations/converter_plugin_lt.ts new file mode 100644 index 000000000..9f673ed54 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_lt.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + Pasirinkite aplanką + + + + Artist + Atlikėjas + + + + Album + Albumas + + + + Title + Pavadinimas + + + + Track number + Takelio numeris + + + + Two-digit track number + Dviejų skaitmenų takelio numeris + + + + Genre + Žanras + + + + Comment + Komentaras + + + + Composer + Autorius + + + + Duration + Trukmė + + + + Disc number + Disko numeris + + + + File name + Bylos pavadinimas + + + + File path + Bylos kelias + + + + Year + Metai + + + + Condition + Būklė + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Sukūrė: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_nl.ts b/src/plugins/General/converter/translations/converter_plugin_nl.ts new file mode 100644 index 000000000..507a196c5 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_nl.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + + + + + Choose a directory + Kies een map + + + + Artist + Artiest + + + + Album + Album + + + + Title + Naam + + + + Track number + Liednummer + + + + Two-digit track number + Twee-getal liednummer + + + + Genre + Genre + + + + Comment + Commentaar + + + + Composer + Componist + + + + Duration + Duur + + + + Disc number + CD nummer + + + + File name + Bestandsnaam + + + + File path + Pad + + + + Year + Jaar + + + + Condition + Staat + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Auteur: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_pl.ts b/src/plugins/General/converter/translations/converter_plugin_pl.ts new file mode 100644 index 000000000..160f37541 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_pl.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + + + + + Choose a directory + Wybierz katalog + + + + Artist + Artysta + + + + Album + Album + + + + Title + Tytuł + + + + Track number + Numer utworu + + + + Two-digit track number + Dwucyfrowy numer utworu + + + + Genre + Gatunek + + + + Comment + Komentarz + + + + Composer + Kompozytor + + + + Duration + Długość + + + + Disc number + Numer płyty + + + + File name + Nazwa pliku + + + + File path + Ścieżka pliku + + + + Year + Rok + + + + Condition + Warunek + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_ru.ts b/src/plugins/General/converter/translations/converter_plugin_ru.ts new file mode 100644 index 000000000..bda9c85b9 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_ru.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + Выберите директорию + + + + Artist + Исполнитель + + + + Album + Альбом + + + + Title + Название + + + + Track number + Номер трека + + + + Two-digit track number + 2-х разрядный номер трека + + + + Genre + Жанр + + + + Comment + Комментарий + + + + Composer + Композитор + + + + Duration + Длительность + + + + Disc number + Номер диска + + + + File name + Имя файла + + + + File path + Путь к файлу + + + + Year + Год + + + + Condition + Условие + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Разработчик: Илья Котов <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_tr.ts b/src/plugins/General/converter/translations/converter_plugin_tr.ts new file mode 100644 index 000000000..1d3ef6997 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_tr.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + Dizin seç + + + + Artist + + + + + Album + + + + + Title + + + + + Track number + + + + + Two-digit track number + + + + + Genre + + + + + Comment + Yorum + + + + Composer + + + + + Duration + + + + + Disc number + + + + + File name + + + + + File path + + + + + Year + Yıl + + + + Condition + + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Yazan: Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts new file mode 100644 index 000000000..7b832652c --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + + + + + Choose a directory + Виберіть теку + + + + Artist + Виконавець + + + + Album + Альбом + + + + Title + Назва + + + + Track number + Номер трека + + + + Two-digit track number + 2-розрядний номер трека + + + + Genre + Жанр + + + + Comment + Коментар + + + + Composer + Композитор + + + + Duration + Тривалість + + + + Disc number + Номер диска + + + + File name + Ім'я файла + + + + File path + Шлях до файла + + + + Year + Рік + + + + Condition + Умова + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Розробник: Ілля Котов <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts new file mode 100644 index 000000000..186505f95 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + 选择一个目录 + + + + Artist + 艺术家 + + + + Album + 专辑 + + + + Title + 标题 + + + + Track number + 音轨编号 + + + + Two-digit track number + 两位数音轨编号 + + + + Genre + 流派 + + + + Comment + 备注 + + + + Composer + 作曲 + + + + Duration + 持续时间 + + + + Disc number + 光盘编号 + + + + File name + 文件名 + + + + File path + 文件路径 + + + + Year + 年代 + + + + Condition + 条件 + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts new file mode 100644 index 000000000..ed45b8334 --- /dev/null +++ b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts @@ -0,0 +1,165 @@ + + + + + ConverterDialog + + + Converter Settings + + + + + Select files to convert: + + + + + Output file directory: + + + + + Output file name: + + + + + Preset: + + + + + Overwrite existing files + + + + + + + ... + ... + + + + Choose a directory + 選取一個目錄 + + + + Artist + 藝術家 + + + + Album + 專輯 + + + + Title + 標題 + + + + Track number + 音軌編號 + + + + Two-digit track number + 兩位數音軌編號 + + + + Genre + 流派 + + + + Comment + 備註 + + + + Composer + 作曲 + + + + Duration + 持續時間 + + + + Disc number + 光槃編號 + + + + File name + 文件名 + + + + File path + 文件路徑 + + + + Year + 年代 + + + + Condition + 條件 + + + + ConverterFactory + + + Converter Plugin + + + + + About Converter Plugin + + + + + Qmmp Converter Plugin + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + ConverterHelper + + + Convert + + + + + Meta+C + + + + + Converting... + + + + + Cancel + + + + diff --git a/src/plugins/General/converter/translations/translations.qrc b/src/plugins/General/converter/translations/translations.qrc new file mode 100644 index 000000000..755b3419c --- /dev/null +++ b/src/plugins/General/converter/translations/translations.qrc @@ -0,0 +1,18 @@ + + + + converter_plugin_it.qm + converter_plugin_ru.qm + converter_plugin_uk_UA.qm + converter_plugin_zh_CN.qm + converter_plugin_zh_TW.qm + converter_plugin_cs.qm + converter_plugin_de.qm + converter_plugin_pl.qm + converter_plugin_tr.qm + converter_plugin_lt.qm + converter_plugin_nl.qm + converter_plugin_ja.qm + converter_plugin_es.qm + + -- cgit v1.2.3-13-gbd6f