-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup-locale.h
43 lines (33 loc) · 927 Bytes
/
setup-locale.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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