blob: 3709d6d2da17dffacc56255b68730d20f99153ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef NLS_H
#define NLS_H
#include <config.h>
#if ENABLE_NLS
#include <libintl.h>
#define _(S) dgettext(PACKAGE, S)
#define init_nls() \
do{ \
bindtextdomain(PACKAGE, LOCALEDIR); \
textdomain(PACKAGE); \
}while(0);
#else /* ENABLE_NLS */
#define _(S) S
#define init_nls() (void)0
#endif /* ENABLE_NLS */
#endif /* NLS_H */
|