summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-01-13 21:39:39 +0100
committerBastien Nocera <hadess@hadess.net>2015-01-13 21:41:50 +0100
commit1a5f59710f373f48f3a7c70ee4f1a173fbc07040 (patch)
treeb0dc7f0828e7949c4b180a9e2508bf9d9e7452bb
parent35861c3726053d00244743abe67cf3b8dbbdf153 (diff)
downloadtotem-1a5f59710f373f48f3a7c70ee4f1a173fbc07040.tar.gz
thumbnailer: Fix missing translation support
https://bugzilla.gnome.org/show_bug.cgi?id=742881
-rw-r--r--src/totem-video-thumbnailer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 663317814..5feea07e9 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -36,6 +36,7 @@
#include <gdk/gdk.h>
#include <totem-pl-parser.h>
+#include <locale.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
@@ -891,6 +892,11 @@ int main (int argc, char *argv[])
const char *input, *output;
ThumbApp app;
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
context = g_option_context_new ("Thumbnail movies");
options = gst_init_get_option_group ();
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);