diff options
author | Bastien Nocera <hadess@hadess.net> | 2015-01-13 21:39:39 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2015-01-13 21:41:50 +0100 |
commit | 1a5f59710f373f48f3a7c70ee4f1a173fbc07040 (patch) | |
tree | b0dc7f0828e7949c4b180a9e2508bf9d9e7452bb | |
parent | 35861c3726053d00244743abe67cf3b8dbbdf153 (diff) | |
download | totem-1a5f59710f373f48f3a7c70ee4f1a173fbc07040.tar.gz |
thumbnailer: Fix missing translation support
https://bugzilla.gnome.org/show_bug.cgi?id=742881
-rw-r--r-- | 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 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); |