summaryrefslogtreecommitdiff
path: root/src/libnm-gtk/init.c
blob: 2a267f99a4698986a87d935e2243b4ac1ebfdc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0+

/*
 * Copyright 2014 Red Hat, Inc.
 */

#include "nm-default.h"

#include <libintl.h>

static void __attribute__((constructor))
_libnm_gtk_init (void)
{
	static gboolean initialized = FALSE;

	if (initialized)
		return;
	initialized = TRUE;

	bindtextdomain (GETTEXT_PACKAGE, NMALOCALEDIR);
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
}