Commit 19f019c7 authored by Christophe Mutricy's avatar Christophe Mutricy

Add a "Media Files" extension list + i18n

parent 35b15af9
......@@ -186,4 +186,7 @@ VLC_EXPORT( void, intf_Destroy, ( intf_thread_t * ) );
#define EXTENSIONS_PLAYLIST "*.asx;*.b4s;*.m3u;*.pls;*.vlc;*.xspf"
#define EXTENSIONS_MEDIA EXTENSIONS_VIDEO ";" EXTENSIONS_AUDIO ";" \
EXTENSIONS_PLAYLIST
#define EXTENSIONS_SUBTITLE "*.idx;*.srt;*.sub;*.utf"
......@@ -276,13 +276,24 @@ void DialogsProvider::openMLDirectory()
QStringList DialogsProvider::showSimpleOpen()
{
QString FileTypes;
FileTypes = "Video Files ( ";
FileTypes = _("Media Files");
FileTypes += " ( ";
FileTypes += EXTENSIONS_MEDIA;
FileTypes += ");;";
FileTypes += _("Video Files");
FileTypes += " ( ";
FileTypes += EXTENSIONS_VIDEO;
FileTypes += ");; Sound Files ( ";
FileTypes += ");;";
FileTypes += _("Sound Files");
FileTypes += " ( ";
FileTypes += EXTENSIONS_AUDIO;
FileTypes += ");; PlayList Files ( ";
FileTypes += ");;";
FileTypes += _("PlayList Files");
FileTypes += " ( ";
FileTypes += EXTENSIONS_PLAYLIST;
FileTypes += ");; All Files (*.*)" ;
FileTypes += ");;";
FileTypes += _("All Files");
FileTypes += " (*.*)";
FileTypes.replace(QString(";*"), QString(" *"));
return QFileDialog::getOpenFileNames( NULL, qfu(I_POP_SEL_FILES ),
p_intf->p_libvlc->psz_homedir, FileTypes );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment