summaryrefslogtreecommitdiff
path: root/src/core/nls.h
blob: dfa640d1a4059e1012a2f7f4d0df80484f86bdfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef NLS_H
#define NLS_H

#if ENABLE_NLS

#include <config.h>
#include <libintl.h>
#define _(S) gettext(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 */