[vlc-commits] skin2: fix string can't be parsed by gettext
Pierre Lamot
git at videolan.org
Thu Nov 23 10:07:17 CET 2017
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Nov 23 10:03:50 2017 +0100| [0fc13af3edbea968568dec8e74884c09bb9d6513] | 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=0fc13af3edbea968568dec8e74884c09bb9d6513
---
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