Debian Codegraph @

include/i18n.h

raw
1 /*
2 * Copyright (c) 2005 William Pitcock et al.
3 * Rights to this code are documented in doc/LICENSE.
4 *
5 * This is the header which includes all of the internationalization stuff.
6 *
7 */
8
9 #ifndef ATHEME_INTL_H
10 #define ATHEME_INTL_H
11
12 #ifdef ENABLE_NLS
13 # include <locale.h>
14 # include <libintl.h>
15 # define _(String) gettext (String)
16 # ifdef gettext_noop
17 # define N_(String) gettext_noop (String)
18 # else
19 # define N_(String) (String)
20 # endif
21 #else
22 # define _(x) (x)
23 # define N_(x) (x)
24 # define ngettext(s1, sn, n) ((n) == 1 ? (s1) : (sn))
25 #endif
26
27 #endif