diff options
author | walters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e> | 2008-06-09 19:58:45 +0000 |
---|---|---|
committer | walters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e> | 2008-06-09 19:58:45 +0000 |
commit | d12ee12612c692f9722561de380e9be7777bdfc4 (patch) | |
tree | b76bebae4f758a9b83226807b993d080df37ad07 | |
parent | 0773befd0ca49a9208f0c5f7c5c71d1688d12e14 (diff) |
2008-06-09 Colin Walters <walters@verbum.org>
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
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/krb5-auth-dialog.c | 5 |
3 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,13 @@ 2008-06-09 Colin Walters <walters@verbum.org> + 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 <walters@verbum.org> + Bug 534620: password field focus * src/krb5-auth-dialog.c: Be sure we focus the 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); |