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