Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (33 sloc) 927 Bytes
/*
* Isolate the macros related to locale
* $Id: setup-locale.h,v 1.12 2004-11-24 01:59:12 megastep Exp $
*/
#ifndef _setup_locale_h_
#define _setup_locale_h_
/*#define HARDCODE_TRANSLATION 1*/
#if HARDCODE_TRANSLATION
const char *translation_lookup_table(const char *str);
#define _(String) translation_lookup_table(String)
#define bindtextdomain(x, y)
#define textdomain(x)
#elif defined HAVE_LIBINTL_H
#include <libintl.h>
#define _(String) gettext (String)
#else
#warning "Localization subsystem was DISABLED"
#define _(String) (String)
#define bindtextdomain(x, y)
#define textdomain(x)
#endif
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#define gettext_noop(String) (String)
/* The prefix for all our setup data files */
#define SETUP_BASE "setup.data/"
#define SETUP_CONFIG SETUP_BASE "setup.xml"
#define PACKAGE "setup"
#ifndef LOCALEDIR
#define LOCALEDIR SETUP_BASE "locale"
#endif
#endif