Add a "Media Files" extension list + i18n
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 23 Sep 2006 12:36:02 +0000 (12:36 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 23 Sep 2006 12:36:02 +0000 (12:36 +0000)
include/vlc_interface.h
modules/gui/qt4/dialogs_provider.cpp

index 4a8937c..5b12708 100644 (file)
@@ -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"
index 96625c4..bbee52b 100644 (file)
@@ -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 );