[epiphany/gnome-3-16] Fix translations in the search provider



commit cd4032bce6abd1bdbe4203660da3c0aab3f3930c
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Jul 1 10:05:12 2015 -0500

    Fix translations in the search provider

 src/ephy-search-provider-main.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-search-provider-main.c b/src/ephy-search-provider-main.c
index c77892e..0fccbe5 100644
--- a/src/ephy-search-provider-main.c
+++ b/src/ephy-search-provider-main.c
@@ -24,12 +24,23 @@
 #include "ephy-file-helpers.h"
 #include "ephy-private.h"
 
+#include <glib/gi18n.h>
+#include <locale.h>
+
 gint main (gint argc, gchar** argv)
 {
   EphySearchProvider *search_provider;
   int status;
   GError *error = NULL;
 
+#if ENABLE_NLS
+  /* Initialize the i18n stuff */
+  setlocale (LC_ALL, "");
+  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+#endif
+
   if (!ephy_file_helpers_init (NULL, 0, &error)) {
     g_printerr ("%s\n", error->message);
     g_error_free (error);


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