[vlc-commits] qt: provide translation for filters in logo file selector

Pierre Lamot git at videolan.org
Wed Nov 29 16:25:10 CET 2017


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Nov 29 10:22:06 2017 +0100| [816b58613ef43586acbc6b531d4180e92a53a40a] | committer: Jean-Baptiste Kempf

qt: provide translation for filters in logo file selector

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=816b58613ef43586acbc6b531d4180e92a53a40a
---

 modules/gui/qt/components/extended_panels.cpp | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index 88f46d50a5..fd82a43fe1 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -51,6 +51,7 @@
 #include "input_manager.hpp"
 #include "util/qt_dirs.hpp"
 #include "util/customwidgets.hpp"
+#include "dialogs_provider.hpp"
 
 #include "../../audio_filter/equalizer_presets.h"
 #include <vlc_vout.h>
@@ -357,16 +358,22 @@ void ExtVideo::updateFilters()
 
 void ExtVideo::browseLogo()
 {
+    QString filter = QString( "%1 (*.png *.jpg);;%2 (*)" )
+                        .arg( qtr("Image Files") )
+                        .arg( TITLE_EXTENSIONS_ALL );
     QString file = QFileDialog::getOpenFileName( NULL, qtr( "Logo filenames" ),
-                   p_intf->p_sys->filepath, "Images (*.png *.jpg);;All (*)" );
+                   p_intf->p_sys->filepath, filter );
 
     UPDATE_AND_APPLY_TEXT( logoFileText, file );
 }
 
 void ExtVideo::browseEraseFile()
 {
+    QString filter = QString( "%1 (*.png *.jpg);;%2 (*)" )
+                        .arg( qtr("Image Files") )
+                        .arg( TITLE_EXTENSIONS_ALL );
     QString file = QFileDialog::getOpenFileName( NULL, qtr( "Image mask" ),
-                   p_intf->p_sys->filepath, "Images (*.png *.jpg);;All (*)" );
+                   p_intf->p_sys->filepath, filter );
 
     UPDATE_AND_APPLY_TEXT( eraseMaskText, file );
 }



More information about the vlc-commits mailing list