tools: setup translations for sysprof-cli

This commit is contained in:
Christian Hergert
2019-07-13 15:01:59 -07:00
parent 6a331f44f4
commit bb5261bc32

View File

@ -117,6 +117,12 @@ main (gint argc,
g_unix_signal_add (SIGINT, sigint_handler, main_loop);
g_unix_signal_add (SIGTERM, sigint_handler, main_loop);
/* Set up gettext translations */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
/* Before we start processing argv, look for "--" and take everything after
* it as arguments as a "-c" replacement.
*/