[epiphany] search-provider: initialize translations
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] search-provider: initialize translations
- Date: Mon, 15 Jun 2015 02:30:00 +0000 (UTC)
commit 09da23951f31787d62953a26ebdd2d71b7d84c42
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Sep 21 13:47:03 2014 -0500
search-provider: initialize translations
https://bugzilla.gnome.org/show_bug.cgi?id=737085
src/ephy-search-provider-main.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-search-provider-main.c b/src/ephy-search-provider-main.c
index c77892e..7ac746b 100644
--- a/src/ephy-search-provider-main.c
+++ b/src/ephy-search-provider-main.c
@@ -24,12 +24,21 @@
#include "ephy-file-helpers.h"
#include "ephy-private.h"
+#include <glib/gi18n.h>
+
gint main (gint argc, gchar** argv)
{
EphySearchProvider *search_provider;
int status;
GError *error = NULL;
+#ifdef ENABLE_NLS
+ /* Initialize the i18n stuff */
+ 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]