summaryrefslogtreecommitdiff
path: root/src/ephy-search-provider-main.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2014-09-21 13:47:03 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2015-06-14 21:29:54 -0500
commit09da23951f31787d62953a26ebdd2d71b7d84c42 (patch)
treed7e2c6a281c0c87baa7224f2c2b206219c0988a7 /src/ephy-search-provider-main.c
parent269f01c98e568e18ab69b26ca59786b6f0b84304 (diff)
downloadepiphany-09da23951f31787d62953a26ebdd2d71b7d84c42.tar.gz
search-provider: initialize translations
https://bugzilla.gnome.org/show_bug.cgi?id=737085
Diffstat (limited to 'src/ephy-search-provider-main.c')
-rw-r--r--src/ephy-search-provider-main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ephy-search-provider-main.c b/src/ephy-search-provider-main.c
index c77892e64..7ac746b17 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);