From 1c1301c0ba99b8ed884b5c49c557d9bb3eb810fd Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 13 Jul 2019 15:04:11 -0700 Subject: [PATCH] sysprof: setup gettext in main --- src/sysprof/sysprof.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sysprof/sysprof.c b/src/sysprof/sysprof.c index 63b76e74..2ec184de 100644 --- a/src/sysprof/sysprof.c +++ b/src/sysprof/sysprof.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#include "config.h" + #include #include #include @@ -31,6 +33,12 @@ main (gint argc, sysprof_clock_init (); + /* Set up gettext translations */ + setlocale (LC_ALL, ""); + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); + app = sysprof_application_new (); ret = g_application_run (G_APPLICATION (app), argc, argv);