gettext.h
Go to the documentation of this file.
1 #ifndef NVIM_GETTEXT_H
2 #define NVIM_GETTEXT_H
3 
4 #ifdef HAVE_WORKING_LIBINTL
5 # include <libintl.h>
6 # define _(x) gettext((char *)(x))
7 // XXX do we actually need this?
8 # ifdef gettext_noop
9 # define N_(x) gettext_noop(x)
10 # else
11 # define N_(x) x
12 # endif
13 # define NGETTEXT(x, xs, n) ngettext(x, xs, n)
14 #else
15 # define _(x) ((char *)(x))
16 # define N_(x) x
17 # define NGETTEXT(x, xs, n) ((n) == 1 ? (x) : (xs))
18 # define bindtextdomain(x, y) // empty
19 # define bind_textdomain_codeset(x, y) // empty
20 # define textdomain(x) // empty
21 #endif
22 
23 #endif // NVIM_GETTEXT_H