[gnome-builder] src: bring back early locale setup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] src: bring back early locale setup
- Date: Sun, 19 May 2019 20:04:06 +0000 (UTC)
commit 34798206b997513463d7880f06f5a43bf8eb8f2a
Author: Christian Hergert <chergert redhat com>
Date: Sun May 19 13:03:16 2019 -0700
src: bring back early locale setup
During the refactor, we lost this from ide-application.c
Fixes #798
src/main.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index ffc833835..dd9825585 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,6 +115,12 @@ main (gint argc,
/* Always ignore SIGPIPE */
signal (SIGPIPE, SIG_IGN);
+ /* Set up gettext translations */
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
/* Setup various application name/id defaults. */
g_set_prgname (ide_get_program_name ());
g_set_application_name (_("Builder"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]