diff --git a/etc/Translation/Blank.ts b/etc/Translation/Blank.ts index 92c475a6..e37edd2f 100644 --- a/etc/Translation/Blank.ts +++ b/etc/Translation/Blank.ts @@ -217,6 +217,10 @@ All supported types + + Playlists + + All files diff --git a/etc/Translation/LameXP_DE.ts b/etc/Translation/LameXP_DE.ts index 976aaead..f0c2c0f9 100644 --- a/etc/Translation/LameXP_DE.ts +++ b/etc/Translation/LameXP_DE.ts @@ -221,6 +221,10 @@ All files Alle Dateien + + Playlists + Wiedergabelisten + DropBox diff --git a/etc/Translation/LameXP_ES.ts b/etc/Translation/LameXP_ES.ts index 8db357a0..4347c696 100644 --- a/etc/Translation/LameXP_ES.ts +++ b/etc/Translation/LameXP_ES.ts @@ -222,6 +222,10 @@ All files Todos los archivos + + Playlists + + DropBox diff --git a/etc/Translation/LameXP_FR.ts b/etc/Translation/LameXP_FR.ts index b4730b6f..c1dffd1d 100644 --- a/etc/Translation/LameXP_FR.ts +++ b/etc/Translation/LameXP_FR.ts @@ -222,6 +222,10 @@ All files Tous les fichiers + + Playlists + + DropBox diff --git a/etc/Translation/LameXP_IT.ts b/etc/Translation/LameXP_IT.ts index 89767bcf..2a76e082 100644 --- a/etc/Translation/LameXP_IT.ts +++ b/etc/Translation/LameXP_IT.ts @@ -221,6 +221,10 @@ All files Tutti i files + + Playlists + + DropBox diff --git a/res/localization/LameXP_DE.qm b/res/localization/LameXP_DE.qm index 0424a77d..685baeb5 100644 Binary files a/res/localization/LameXP_DE.qm and b/res/localization/LameXP_DE.qm differ diff --git a/src/Registry_Decoder.cpp b/src/Registry_Decoder.cpp index ae70a580..bb08a62b 100644 --- a/src/Registry_Decoder.cpp +++ b/src/Registry_Decoder.cpp @@ -40,6 +40,8 @@ #include #include +static const char *g_playlistExt = "*.m3u *.m3u8 *.pls *.asx *.wpl"; + #define PROBE_DECODER(DEC) if(DEC::isDecoderAvailable() && DEC::isFormatSupported(containerType, containerProfile, formatType, formatProfile, formatVersion)) { return new DEC(); } #define GET_FILETYPES(DEC) (DEC::isDecoderAvailable() ? DEC::supportedTypes() : QStringList()) @@ -83,6 +85,7 @@ QStringList DecoderRegistry::getSupportedTypes(void) types << GET_FILETYPES(ADPCMDecoder); QStringList extensions; + extensions << QString(g_playlistExt).split(" ", QString::SkipEmptyParts); QRegExp regExp("\\((.+)\\)", Qt::CaseInsensitive); for(int i = 0; i < types.count(); i++) @@ -92,7 +95,7 @@ QStringList DecoderRegistry::getSupportedTypes(void) extensions << regExp.cap(1).split(" ", QString::SkipEmptyParts); } } - + if(!extensions.empty()) { extensions.removeDuplicates(); @@ -100,6 +103,8 @@ QStringList DecoderRegistry::getSupportedTypes(void) types.prepend(QString("%1 (%2)").arg(tr("All supported types"), extensions.join(" "))); } + types << QString("%1 (%2)").arg(tr("Playlists"), g_playlistExt); types << QString("%1 (*.*)").arg(tr("All files")); + return types; }