[epiphany/wip/i18n: 4/4] Really fix translations in the search provider



commit e292875a444bb98424121278a5eaa3fbdd6e91c8
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jun 29 15:42:17 2015 -0500

    Really fix translations in the search provider
    
    We need to call setlocale() manually because we are not a GTK+
    application and do not call gtk_init() (which would normally handle this
    for us).

 src/ephy-search-provider-main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-search-provider-main.c b/src/ephy-search-provider-main.c
index 0d98581..8bf3d6f 100644
--- a/src/ephy-search-provider-main.c
+++ b/src/ephy-search-provider-main.c
@@ -25,6 +25,7 @@
 #include "ephy-private.h"
 
 #include <glib/gi18n.h>
+#include <locale.h>
 
 gint main (gint argc, gchar** argv)
 {
@@ -33,6 +34,7 @@ gint main (gint argc, gchar** argv)
   GError *error = NULL;
 
   /* Initialize the i18n stuff */
+  setlocale (LC_ALL, "");
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]