gio/ docs/reference/gio Merged gio-standalone into glib.
[platform/upstream/glib.git] / glib / glibintl.h
1 #ifndef __GLIBINTL_H__
2 #define __GLIBINTL_H__
3
4 #ifndef SIZEOF_CHAR
5 #error "config.h must be included prior to glibintl.h"
6 #endif
7
8 #ifdef ENABLE_NLS
9
10 gchar *glib_gettext (const gchar *str);
11
12 #include <libintl.h>
13 #define _(String) glib_gettext(String)
14 /* Split out this in the code, but keep it in the same domain for now */
15 #define P_(String) glib_gettext(String)
16
17 #ifdef gettext_noop
18 #define N_(String) gettext_noop(String)
19 #else
20 #define N_(String) (String)
21 #endif
22 #else /* NLS is disabled */
23 #define _(String) (String)
24 #define N_(String) (String)
25 #define P_(String) (String)
26 #define textdomain(String) (String)
27 #define gettext(String) (String)
28 #define dgettext(Domain,String) (String)
29 #define dcgettext(Domain,String,Type) (String)
30 #define bindtextdomain(Domain,Directory) (Domain) 
31 #endif
32
33 /* not really I18N-related, but also a string marker macro */
34 #define I_(string) g_intern_static_string (string)
35
36 #endif /* __GLIBINTL_H__ */