5 #error "config.h must be included prior to glibintl.h"
8 G_CONST_RETURN gchar *glib_gettext (const gchar *str) G_GNUC_FORMAT(1);
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 #define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
19 #define N_(String) gettext_noop(String)
21 #define N_(String) (String)
23 #else /* NLS is disabled */
24 #define _(String) (String)
25 #define N_(String) (String)
26 #define P_(String) (String)
27 #define C_(Context,String) (String)
28 #define textdomain(String) ((String) ? (String) : "messages")
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 #define bind_textdomain_codeset(Domain,Codeset)
37 /* not really I18N-related, but also a string marker macro */
38 #define I_(string) g_intern_static_string (string)
40 #endif /* __GLIBINTL_H__ */