[gnome-builder/gnome-builder-3-32] src: bring back early locale setup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-32] src: bring back early locale setup
- Date: Sun, 19 May 2019 20:04:01 +0000 (UTC)
commit ae4882e93632085f5f0ae8636ace8435bb8c2e60
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 09a35058c..298fad62e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -114,6 +114,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]