[totem/gnome-3-8] thumbnailer: Fix missing translation support
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-8] thumbnailer: Fix missing translation support
- Date: Tue, 13 Jan 2015 20:44:06 +0000 (UTC)
commit 191d29aa9e33abda72e76bb452589681b27748dc
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 13 21:39:39 2015 +0100
thumbnailer: Fix missing translation support
https://bugzilla.gnome.org/show_bug.cgi?id=742881
src/totem-video-thumbnailer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 0fa2597..b9a023a 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -36,6 +36,7 @@
#include <gst/gst.h>
#include <totem-disc.h>
+#include <locale.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
@@ -967,6 +968,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]