diff options
Diffstat (limited to 'src/plugins/Transports')
20 files changed, 898 insertions, 13 deletions
diff --git a/src/plugins/Transports/http/CMakeLists.txt b/src/plugins/Transports/http/CMakeLists.txt index 939c22b12..60d623866 100644 --- a/src/plugins/Transports/http/CMakeLists.txt +++ b/src/plugins/Transports/http/CMakeLists.txt @@ -36,6 +36,7 @@ SET(libhttp_SRCS downloader.cpp httpinputfactory.cpp httpinputsource.cpp + settingsdialog.cpp ) SET(libhttp_MOC_HDRS @@ -43,8 +44,21 @@ SET(libhttp_MOC_HDRS httpinputfactory.h httpinputsource.h streamreader.h + settingsdialog.h ) +# resources +SET(libhttp_RCCS translations/translations.qrc) +QT4_ADD_RESOURCES(libhttp_RCC_SRCS ${libhttp_RCCS}) + +# user interface +SET(libhttp_UIS + settingsdialog.ui +) +QT4_WRAP_UI(libhttp_UIS_H ${libhttp_UIS}) + + + QT4_WRAP_CPP(libhttp_MOC_SRCS ${libhttp_MOC_HDRS}) # Don't forget to include output directory, otherwise @@ -52,7 +66,7 @@ QT4_WRAP_CPP(libhttp_MOC_SRCS ${libhttp_MOC_HDRS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) IF(CURL_FOUND) -ADD_LIBRARY(http MODULE ${libhttp_SRCS} ${libhttp_MOC_SRCS}) +ADD_LIBRARY(http MODULE ${libhttp_SRCS} ${libhttp_MOC_SRCS} ${libhttp_UIS_H} ${libhttp_RCC_SRCS}) add_dependencies(http qmmp) target_link_libraries(http ${QT_LIBRARIES} -lqmmp ${CURL_LDFLAGS} ${CURL_CFLAGS}) install(TARGETS http DESTINATION ${LIB_DIR}/qmmp/Transports) diff --git a/src/plugins/Transports/http/downloader.cpp b/src/plugins/Transports/http/downloader.cpp index 37e9c3061..e2bfbe252 100644 --- a/src/plugins/Transports/http/downloader.cpp +++ b/src/plugins/Transports/http/downloader.cpp @@ -22,6 +22,8 @@ #include <QStringList> #include <QDir> #include <QMap> +#include <QSettings> +#include <QTextCodec> #include <stdint.h> #include <stdlib.h> #include <qmmp/qmmpsettings.h> @@ -116,6 +118,11 @@ Downloader::Downloader(QObject *parent, const QString &url) m_handle = 0; m_metacount = 0; m_meta_sent = FALSE; + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + m_codec = QTextCodec::codecForName(settings.value("HTTP/icy_encoding","windows-1252").toByteArray ()); + m_buffer_size = settings.value("HTTP/buffer_size",128).toInt() * 1000; + if (!m_codec) + m_codec = QTextCodec::codecForName ("UTF-8"); } @@ -294,7 +301,7 @@ const QString &Downloader::title() const void Downloader::checkBuffer() { - if (m_stream.buf_fill > BUFFER_SIZE && !m_ready) + if (m_stream.buf_fill > m_buffer_size && !m_ready) { m_ready = TRUE; qDebug("Downloader: ready"); @@ -310,7 +317,7 @@ void Downloader::checkBuffer() } else if (!m_ready) { - StateHandler::instance()->dispatchBuffer(100 * m_stream.buf_fill / BUFFER_SIZE); + StateHandler::instance()->dispatchBuffer(100 * m_stream.buf_fill / m_buffer_size); qApp->processEvents(); } } @@ -346,7 +353,7 @@ void Downloader::readICYMetaData() void Downloader::parseICYMetaData(char *data) { - QString str(data); + QString str = m_codec->toUnicode(data).trimmed(); QStringList list(str.split(";", QString::SkipEmptyParts)); foreach(QString line, list) { diff --git a/src/plugins/Transports/http/downloader.h b/src/plugins/Transports/http/downloader.h index f5a78676e..66855b0f5 100644 --- a/src/plugins/Transports/http/downloader.h +++ b/src/plugins/Transports/http/downloader.h @@ -24,10 +24,9 @@ #include <QMutex> #include <QByteArray> #include <QMap> - #include <curl/curl.h> -#define BUFFER_SIZE 128000 +class QTextCodec; /*! @internal * @author Ilya Kotov <forkotov02@hotmail.ru> @@ -35,7 +34,7 @@ struct Stream { char *buf; - int buf_fill; + long buf_fill; QString content_type; bool aborted; QMap <QString, QString> header; @@ -78,6 +77,8 @@ private: QString m_title; bool m_ready; bool m_meta_sent; + long m_buffer_size; + QTextCodec *m_codec; protected: void run(); diff --git a/src/plugins/Transports/http/http.pro b/src/plugins/Transports/http/http.pro index ad3ca9e7e..35c08883c 100644 --- a/src/plugins/Transports/http/http.pro +++ b/src/plugins/Transports/http/http.pro @@ -2,11 +2,13 @@ include(../../plugins.pri) HEADERS += downloader.h \ streamreader.h \ httpinputfactory.h \ - httpinputsource.h + httpinputsource.h \ + settingsdialog.h SOURCES += downloader.cpp \ streamreader.cpp \ httpinputfactory.cpp \ - httpinputsource.cpp + httpinputsource.cpp \ + settingsdialog.cpp win32:HEADERS += ../../../../src/qmmp/inputsource.h \ ../../../../src/qmmp/inputsourcefactory.h TARGET = $$PLUGINS_PREFIX/Transports/http @@ -27,6 +29,21 @@ unix { INSTALLS += target } win32 { - QMAKE_LIBDIR += ../../../../bin - LIBS += -lqmmp0 -lcurldll + QMAKE_LIBDIR += ../../../../bin + LIBS += -lqmmp0 \ + -lcurldll } +FORMS += settingsdialog.ui + +TRANSLATIONS = translations/http_plugin_ru.ts \ + translations/http_plugin_uk_UA.ts \ + translations/http_plugin_zh_CN.ts \ + translations/http_plugin_zh_TW.ts \ + translations/http_plugin_cs.ts \ + translations/http_plugin_pl.ts \ + translations/http_plugin_de.ts \ + translations/http_plugin_it.ts \ + translations/http_plugin_tr.ts \ + translations/http_plugin_lt.ts + +RESOURCES = translations/translations.qrc diff --git a/src/plugins/Transports/http/httpinputfactory.cpp b/src/plugins/Transports/http/httpinputfactory.cpp index 63997b934..a7f5e22b8 100644 --- a/src/plugins/Transports/http/httpinputfactory.cpp +++ b/src/plugins/Transports/http/httpinputfactory.cpp @@ -23,6 +23,7 @@ #include <QTranslator> #include <curl/curlver.h> #include <qmmp/qmmp.h> +#include "settingsdialog.h" #include "httpinputsource.h" #include "httpinputfactory.h" @@ -44,6 +45,8 @@ InputSource *HTTPInputFactory::create(const QString &url, QObject *parent) void HTTPInputFactory::showSettings(QWidget *parent) { + SettingsDialog *s = new SettingsDialog(parent); + s->show(); } void HTTPInputFactory::showAbout(QWidget *parent) diff --git a/src/plugins/Transports/http/settingsdialog.cpp b/src/plugins/Transports/http/settingsdialog.cpp new file mode 100644 index 000000000..0b4636ead --- /dev/null +++ b/src/plugins/Transports/http/settingsdialog.cpp @@ -0,0 +1,91 @@ +/*************************************************************************** + * Copyright (C) 2010 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#include <QTextCodec> +#include <QSettings> +#include <qmmp/qmmp.h> +#include "settingsdialog.h" + +SettingsDialog::SettingsDialog(QWidget *parent) + : QDialog(parent) +{ + ui.setupUi(this); + setAttribute(Qt::WA_DeleteOnClose); + findCodecs(); + foreach (QTextCodec *codec, codecs) + ui.icyEncodingComboBox->addItem(codec->name()); + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("HTTP"); + int pos = ui.icyEncodingComboBox->findText(settings.value("icy_encoding","windows-1252").toString()); + ui.icyEncodingComboBox->setCurrentIndex(pos); + ui.bufferSizeSpinBox->setValue(settings.value("buffer_size",128).toInt()); + settings.endGroup(); +} + + +SettingsDialog::~SettingsDialog() +{} + +void SettingsDialog::accept() +{ + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("HTTP"); + settings.setValue("icy_encoding", ui.icyEncodingComboBox->currentText()); + settings.setValue("buffer_size", ui.bufferSizeSpinBox->value()); + settings.endGroup(); + QDialog::accept(); +} + +void SettingsDialog::findCodecs() +{ + QMap<QString, QTextCodec *> codecMap; + QRegExp iso8859RegExp("ISO[- ]8859-([0-9]+).*"); + + foreach (int mib, QTextCodec::availableMibs()) + { + QTextCodec *codec = QTextCodec::codecForMib(mib); + + QString sortKey = codec->name().toUpper(); + int rank; + + if (sortKey.startsWith("UTF-8")) + { + rank = 1; + } + else if (sortKey.startsWith("UTF-16")) + { + rank = 2; + } + else if (iso8859RegExp.exactMatch(sortKey)) + { + if (iso8859RegExp.cap(1).size() == 1) + rank = 3; + else + rank = 4; + } + else + { + rank = 5; + } + sortKey.prepend(QChar('0' + rank)); + + codecMap.insert(sortKey, codec); + } + codecs = codecMap.values(); +} diff --git a/src/plugins/Transports/http/settingsdialog.h b/src/plugins/Transports/http/settingsdialog.h new file mode 100644 index 000000000..8f109c1a5 --- /dev/null +++ b/src/plugins/Transports/http/settingsdialog.h @@ -0,0 +1,47 @@ +/*************************************************************************** + * Copyright (C) 2010 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef SETTINGSDIALOG_H +#define SETTINGSDIALOG_H + +#include <QDialog> +#include "ui_settingsdialog.h" + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class SettingsDialog : public QDialog +{ +Q_OBJECT +public: + SettingsDialog(QWidget *parent = 0); + + ~SettingsDialog(); + +private slots: + virtual void accept(); + +private: + void findCodecs(); + Ui::SettingsDialog ui; + QList<QTextCodec *> codecs; + +}; + +#endif diff --git a/src/plugins/Transports/http/settingsdialog.ui b/src/plugins/Transports/http/settingsdialog.ui new file mode 100644 index 000000000..28b990432 --- /dev/null +++ b/src/plugins/Transports/http/settingsdialog.ui @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>SettingsDialog</class> + <widget class="QDialog" name="SettingsDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>235</width> + <height>91</height> + </rect> + </property> + <property name="windowTitle"> + <string>HTTP Plugin Settings</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <property name="leftMargin"> + <number>6</number> + </property> + <property name="rightMargin"> + <number>6</number> + </property> + <property name="bottomMargin"> + <number>6</number> + </property> + <item row="0" column="0" colspan="2"> + <widget class="QLabel" name="label_15_4"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Metadata encoding:</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QComboBox" name="icyEncodingComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="0" colspan="2"> + <widget class="QLabel" name="label_17_2_2"> + <property name="text"> + <string>Buffer size:</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QSpinBox" name="bufferSizeSpinBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimum"> + <number>20</number> + </property> + <property name="maximum"> + <number>1000</number> + </property> + <property name="singleStep"> + <number>20</number> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLabel" name="label"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>KB</string> + </property> + </widget> + </item> + <item row="2" column="0" colspan="4"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>SettingsDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>168</x> + <y>84</y> + </hint> + <hint type="destinationlabel"> + <x>70</x> + <y>90</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>SettingsDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>219</x> + <y>73</y> + </hint> + <hint type="destinationlabel"> + <x>61</x> + <y>87</y> + </hint> + </hints> + </connection> + </connections> +</ui> diff --git a/src/plugins/Transports/http/streamreader.cpp b/src/plugins/Transports/http/streamreader.cpp index f6a9cba0c..2cc07d682 100644 --- a/src/plugins/Transports/http/streamreader.cpp +++ b/src/plugins/Transports/http/streamreader.cpp @@ -94,14 +94,16 @@ qint64 StreamReader::size () const return bytesAvailable (); } -bool StreamReader::waitForBytesWritten ( int msecs ) +bool StreamReader::waitForBytesWritten (int msecs) { + Q_UNUSED(msecs); //usleep(msecs*1000); return TRUE; } -bool StreamReader::waitForReadyRead ( int msecs ) +bool StreamReader::waitForReadyRead (int msecs) { + Q_UNUSED(msecs); //usleep(msecs*1000); return TRUE; } diff --git a/src/plugins/Transports/http/translations/http_plugin_cs.ts b/src/plugins/Transports/http/translations/http_plugin_cs.ts new file mode 100644 index 000000000..dfafe14e0 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_cs.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="cs"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">KB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_de.ts b/src/plugins/Transports/http/translations/http_plugin_de.ts new file mode 100644 index 000000000..87b87a8d2 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_de.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">KB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_it.ts b/src/plugins/Transports/http/translations/http_plugin_it.ts new file mode 100644 index 000000000..f0ce642d8 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_it.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="it"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">KB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_lt.ts b/src/plugins/Transports/http/translations/http_plugin_lt.ts new file mode 100644 index 000000000..cd18830a1 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_lt.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="lt"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Sukūrė: Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">КB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_pl.ts b/src/plugins/Transports/http/translations/http_plugin_pl.ts new file mode 100644 index 000000000..cc175d58a --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_pl.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pl"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_ru.ts b/src/plugins/Transports/http/translations/http_plugin_ru.ts new file mode 100644 index 000000000..b219ad227 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_ru.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ru"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation>Модуль HTTP</translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation>Настройки модуля HTTP</translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation>Кодировка метаинформации:</translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation>Размер буфера:</translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation>КБ</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_tr.ts b/src/plugins/Transports/http/translations/http_plugin_tr.ts new file mode 100644 index 000000000..e1022f9a5 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_tr.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="tr_TR"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_uk_UA.ts b/src/plugins/Transports/http/translations/http_plugin_uk_UA.ts new file mode 100644 index 000000000..010ffdf47 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_uk_UA.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="uk"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">Кб</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_zh_CN.ts b/src/plugins/Transports/http/translations/http_plugin_zh_CN.ts new file mode 100644 index 000000000..84b2a35c5 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_zh_CN.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_CN"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">作者:Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">KB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/http_plugin_zh_TW.ts b/src/plugins/Transports/http/translations/http_plugin_zh_TW.ts new file mode 100644 index 000000000..e5455e903 --- /dev/null +++ b/src/plugins/Transports/http/translations/http_plugin_zh_TW.ts @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_TW"> +<context> + <name>HTTPInputFactory</name> + <message> + <location filename="../httpinputfactory.cpp" line="34"/> + <source>HTTP Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="54"/> + <source>About HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="55"/> + <source>Qmmp HTTP Transport Plugin</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="56"/> + <source>Compiled against libcurl-%1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../httpinputfactory.cpp" line="57"/> + <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> + <translation type="unfinished">作者:Ilya Kotov <forkotov02@hotmail.ru></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../settingsdialog.ui" line="14"/> + <source>HTTP Plugin Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="35"/> + <source>Metadata encoding:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="55"/> + <source>Buffer size:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../settingsdialog.ui" line="90"/> + <source>KB</source> + <translation type="unfinished">KB</translation> + </message> +</context> +</TS> diff --git a/src/plugins/Transports/http/translations/translations.qrc b/src/plugins/Transports/http/translations/translations.qrc new file mode 100644 index 000000000..61b1cee64 --- /dev/null +++ b/src/plugins/Transports/http/translations/translations.qrc @@ -0,0 +1,15 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource> + <file>http_plugin_it.qm</file> + <file>http_plugin_ru.qm</file> + <file>http_plugin_uk_UA.qm</file> + <file>http_plugin_zh_CN.qm</file> + <file>http_plugin_zh_TW.qm</file> + <file>http_plugin_cs.qm</file> + <file>http_plugin_de.qm</file> + <file>http_plugin_pl.qm</file> + <file>http_plugin_tr.qm</file> + <file>http_plugin_lt.qm</file> + </qresource> +</RCC> |
