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 G_CONST_RETURN gchar *glib_gettext (const gchar *str) G_GNUC_FORMAT(1); 9 10 #if 0 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) ? (String) : "messages") 27 #define gettext(String) (String) 28 #define dgettext(Domain,String) (String) 29 #define dcgettext(Domain,String,Type) (String) 30 #define dngettext(Domain,String1,String2,N) ((N) == 1 ? (String1) : (String2)) 31 #define bindtextdomain(Domain,Directory) (Domain) 32 #define bind_textdomain_codeset(Domain,Codeset) 33 #endif 34 35 /* not really I18N-related, but also a string marker macro */ 36 #define I_(string) g_intern_static_string (string) 37 38 #endif /* __GLIBINTL_H__ */ 39