[vlc-commits] skin2: fix string can't be parsed by gettext

Pierre Lamot git at videolan.org
Thu Nov 23 10:17:09 CET 2017


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Nov 23 10:03:50 2017 +0100| [39d49cef673e647938921d106089cd57bbdf4b01] | committer: Jean-Baptiste Kempf

skin2: fix string can't be parsed by gettext

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

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

 modules/gui/skins2/src/dialogs.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/src/dialogs.cpp b/modules/gui/skins2/src/dialogs.cpp
index 79885ea5d8..276909a875 100644
--- a/modules/gui/skins2/src/dialogs.cpp
+++ b/modules/gui/skins2/src/dialogs.cpp
@@ -22,6 +22,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#include <sstream>
 #include "dialogs.hpp"
 #include "../commands/async_queue.hpp"
 #include "../commands/cmd_change_skin.hpp"
@@ -210,9 +211,10 @@ void Dialogs::showChangeSkin()
 
 void Dialogs::showPlaylistLoad()
 {
+    std::stringstream fileTypes;
+    fileTypes << _("Playlist Files|") << EXTENSIONS_PLAYLIST  << _("|All Files|*");
     showFileGeneric( _("Open playlist"),
-                     _("Playlist Files|" EXTENSIONS_PLAYLIST "|"
-                       "All Files|*"),
+                     fileTypes.str(),
                      showPlaylistLoadCB, kOPEN );
 }
 



More information about the vlc-commits mailing list