aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2008-06-09 19:58:45 +0000
committerwalters <walters@517b70f8-ed25-0410-8bf6-f5db08f7b76e>2008-06-09 19:58:45 +0000
commitd12ee12612c692f9722561de380e9be7777bdfc4 (patch)
treeb76bebae4f758a9b83226807b993d080df37ad07
parent0773befd0ca49a9208f0c5f7c5c71d1688d12e14 (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--ChangeLog8
-rw-r--r--src/Makefile.am5
-rw-r--r--src/krb5-auth-dialog.c5
3 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e452fa..f77f120 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);