From d12ee12612c692f9722561de380e9be7777bdfc4 Mon Sep 17 00:00:00 2001 From: walters Date: Mon, 9 Jun 2008 19:58:45 +0000 Subject: 2008-06-09 Colin Walters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 534736: make i18n work * src/krb5-auth-dialog.c: Set up i18n correctly. * src/Makefile.am: Pass in LOCALEDIR. Patch from from Guido Günther. git-svn-id: http://svn.gnome.org/svn/krb5-auth-dialog/trunk@77 517b70f8-ed25-0410-8bf6-f5db08f7b76e --- ChangeLog | 8 ++++++++ src/Makefile.am | 5 +++-- src/krb5-auth-dialog.c | 5 ++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e452fa..f77f120 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-06-09 Colin Walters + + Bug 534736: make i18n work + + * src/krb5-auth-dialog.c: Set up i18n correctly. + * src/Makefile.am: Pass in LOCALEDIR. + Patch from from Guido Günther. + 2008-06-09 Colin Walters Bug 534620: password field focus diff --git a/src/Makefile.am b/src/Makefile.am index 282e938..b2f4abf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,6 @@ -INCLUDES = \ - -DGLADEDIR=\""$(datadir)/krb5-auth-dialog/"\" +INCLUDES = \ + -DGLADEDIR=\""$(gladedir)/"\" \ + -DLOCALE_DIR=\""$(localedir)/"\" bin_PROGRAMS = krb5-auth-dialog man_MANS = krb5-auth-dialog.1 diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c index 7d4fcf3..7d9d0c2 100644 --- a/src/krb5-auth-dialog.c +++ b/src/krb5-auth-dialog.c @@ -602,9 +602,12 @@ main (int argc, char *argv[]) g_error_free (error); return 1; } + textdomain (PACKAGE); + bind_textdomain_codeset (PACKAGE, "UTF-8"); + bindtextdomain (PACKAGE, LOCALE_DIR); /* Connect to the session bus so we get exit-on-disconnect semantics. */ - session = dbus_g_bus_get(DBUS_BUS_SESSION, &error); + session = dbus_g_bus_get (DBUS_BUS_SESSION, &error); if (session == NULL) { g_error ("couldn't connect to session bus: %s", (error) ? error->message : "(null)"); exit(1); -- cgit v1.2.3