mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
Initialize gettext in secret-tool
https://bugzilla.gnome.org/show_bug.cgi?id=680072
This commit is contained in:
parent
9bf240ef4d
commit
54b73f5cb6
@ -4,6 +4,7 @@ INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/libsecret \
|
||||
-DSECRET_COMPILATION \
|
||||
-DLOCALEDIR=\""$(datadir)/locale"\" \
|
||||
$(NULL)
|
||||
|
||||
bin_PROGRAMS = secret-tool
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <locale.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -336,6 +337,14 @@ main (int argc,
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user