diff options
| author | Greg Hudson <ghudson@mit.edu> | 2011-06-10 18:17:12 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2011-06-10 18:17:12 +0000 |
| commit | fd2f45cf93bfbf10863011fb1a61fc08041c2f51 (patch) | |
| tree | dd1d90ae9e744d0c7e127ba17b08977c526d054f /src/lib | |
| parent | 71125ee37ecc540fb60a6efbf4dac80468e1359e (diff) | |
| download | krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.tar.gz krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.tar.xz krb5-fd2f45cf93bfbf10863011fb1a61fc08041c2f51.zip | |
Add localization infrastructure
Adds build system logic, translation macros in k5-platform.h, and
bindtextdomain calls in libkrb5 initialization.
ticket: 6918
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24959 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/Makefile.in | 2 | ||||
| -rw-r--r-- | src/lib/krb5/krb5_libinit.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/Makefile.in b/src/lib/krb5/Makefile.in index 9b95c02ba..a63270a21 100644 --- a/src/lib/krb5/Makefile.in +++ b/src/lib/krb5/Makefile.in @@ -3,7 +3,7 @@ BUILDTOP=$(REL)..$(S).. LOCALINCLUDES = -I$(srcdir)/ccache -I$(srcdir)/keytab -I$(srcdir)/rcache -I$(srcdir)/os -I$(srcdir)/unicode SUBDIRS= error_tables asn.1 ccache keytab krb os rcache unicode WINSUBDIRS= $(SUBDIRS) posix -DEFS= +DEFS=-DLOCALEDIR=\"$(KRB5_LOCALEDIR)\" ##DOSBUILDTOP = ..\.. ##DOSLIBNAME=$(OUTPRE)krb5.lib diff --git a/src/lib/krb5/krb5_libinit.c b/src/lib/krb5/krb5_libinit.c index e7c046705..cb72d508a 100644 --- a/src/lib/krb5/krb5_libinit.c +++ b/src/lib/krb5/krb5_libinit.c @@ -41,6 +41,8 @@ int krb5int_lib_init(void) add_error_table(&et_asn1_error_table); add_error_table(&et_k524_error_table); + bindtextdomain(KRB5_TEXTDOMAIN, LOCALEDIR); + err = krb5int_rc_finish_init(); if (err) return err; |
