[epiphany/wip/i18n: 4/4] Really fix translations in the search provider
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/i18n: 4/4] Really fix translations in the search provider
- Date: Mon, 29 Jun 2015 20:54:36 +0000 (UTC)
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]