Mon, 17 Jan 2005 22:02:09 +0100
trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.
private.h | file | annotate | diff | comparison | revisions | |
util.c | file | annotate | diff | comparison | revisions |
--- a/private.h Sat Oct 09 17:42:46 2004 +0200 +++ b/private.h Mon Jan 17 22:02:09 2005 +0100 @@ -10,7 +10,7 @@ #ifndef LIBTU_PRIVATE_H #define LIBTU_PRIVATE_H -#ifdef CF_L10N +#ifndef CF_NO_LOCALE #include <libintl.h>
--- a/util.c Sat Oct 09 17:42:46 2004 +0200 +++ b/util.c Mon Jan 17 22:02:09 2005 +0100 @@ -12,10 +12,7 @@ #include <stdlib.h> #include <string.h> -#ifdef CONFIG_LOCALE -#include <libintl.h> -#endif - +#include "locale.h" #include "util.h" #include "misc.h" @@ -26,8 +23,8 @@ void libtu_init(const char *argv0) { progname=argv0; - -#ifdef CONFIG_LOCALE + +#ifndef CF_NO_LOCALE textdomain(simple_basename(argv0)); #endif }