finish support for libintl

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23752 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-09-07 21:13:13 +00:00
parent 21bf016cd9
commit 7fe1196c96
22 changed files with 4304 additions and 25 deletions

View File

@@ -40,7 +40,7 @@ RCSID("$Id$");
#include <string.h>
#include <com_right.h>
#ifdef HAVE_LIBINTL
#ifdef LIBINTL
#include <libintl.h>
#else
#define dgettext(d,s) (s)
@@ -53,7 +53,7 @@ com_right(struct et_list *list, long code)
for (p = list; p; p = p->next) {
if (code >= p->table->base && code < p->table->base + p->table->n_msgs) {
const char *str = p->table->msgs[code - p->table->base];
#ifdef HAVE_LIBINTL
#ifdef LIBINTL
char domain[12 + 20];
snprintf(domain, sizeof(domain), "heim_com_err%d", p->table->base);
#endif