summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-01-13 13:43:09 +0000
committerAlexander Larsson <alexl@src.gnome.org>2004-01-13 13:43:09 +0000
commitd9f2bb7220a680cccc82d3ce7a617a27ac0e056d (patch)
tree7bafc9424410aa8f2e311ee4168f20ec3cc24681
parent22c1acbfaebce7d2c28f0e842a3f906e2977c33f (diff)
downloadgnome-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--ChangeLog6
-rw-r--r--Makefile.am1
-rw-r--r--gnome-keyring-ask.c10
3 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fd64c045..65ccd552 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"));