https://bugzilla.gnome.org/show_bug.cgi?id=680072
-I$(top_srcdir) \
-I$(top_srcdir)/libsecret \
-DSECRET_COMPILATION \
+ -DLOCALEDIR=\""$(datadir)/locale"\" \
$(NULL)
bin_PROGRAMS = secret-tool
#include <glib/gi18n.h>
#include <errno.h>
+#include <locale.h>
#include <limits.h>
#include <stdlib.h>
{
SecretToolAction action;
+ setlocale (LC_ALL, "");
+
+#ifdef ENABLE_NLS
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+#endif
+
g_type_init ();
if (argc < 2)