diff options
author | Alexander Larsson <alexl@redhat.com> | 2004-01-13 13:43:09 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2004-01-13 13:43:09 +0000 |
commit | d9f2bb7220a680cccc82d3ce7a617a27ac0e056d (patch) | |
tree | 7bafc9424410aa8f2e311ee4168f20ec3cc24681 | |
parent | 22c1acbfaebce7d2c28f0e842a3f906e2977c33f (diff) | |
download | gnome-keyring-d9f2bb7220a680cccc82d3ce7a617a27ac0e056d.tar.gz |
Actually use translations.
2004-01-13 Alexander Larsson <alexl@redhat.com>
* Makefile.am:
* gnome-keyring-ask.c: (main):
Actually use translations.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | gnome-keyring-ask.c | 10 |
3 files changed, 17 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-01-13 Alexander Larsson <alexl@redhat.com> + * Makefile.am: + * gnome-keyring-ask.c: (main): + Actually use translations. + +2004-01-13 Alexander Larsson <alexl@redhat.com> + * configure.in: * gnome-keyring-daemon-io.c: * gnome-keyring-daemon.c: diff --git a/Makefile.am b/Makefile.am index 71f0b486..18c063cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,7 @@ noinst_LTLIBRARIES=libgnome-keyring-common.la INCLUDES= \ -DPREFIX=\""$(prefix)"\" \ -DBINDIR=\""$(bindir)"\" \ + -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ -I$(top_srcdir) \ -I$(top_builddir) \ $(GTK_CFLAGS) \ diff --git a/gnome-keyring-ask.c b/gnome-keyring-ask.c index 0e218b7c..15df4c66 100644 --- a/gnome-keyring-ask.c +++ b/gnome-keyring-ask.c @@ -368,6 +368,16 @@ main (int argc, char *argv[]) env_item_name = g_getenv ("ITEM_NAME"); gtk_init (&argc, &argv); +#ifdef HAVE_LOCALE_H + /* internationalisation */ + setlocale (LC_ALL, ""); +#endif + +#ifdef HAVE_GETTEXT + bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); + textdomain (GETTEXT_PACKAGE); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif if (argc < 2) { g_print (_("You must specify the type of request to run\n")); |