mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
sysprof: setup gettext in main
This commit is contained in:
@ -16,6 +16,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <sysprof.h>
|
#include <sysprof.h>
|
||||||
@ -31,6 +33,12 @@ main (gint argc,
|
|||||||
|
|
||||||
sysprof_clock_init ();
|
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 ();
|
app = sysprof_application_new ();
|
||||||
ret = g_application_run (G_APPLICATION (app), argc, argv);
|
ret = g_application_run (G_APPLICATION (app), argc, argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user