glib/libglib/inc/glibintl.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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) G_GNUC_FORMAT (1);
       
    11 
       
    12 #include <libintl.h>
       
    13 #define _(String) _glib_gettext(String)
       
    14 
       
    15 #ifdef gettext_noop
       
    16 #define N_(String) gettext_noop(String)
       
    17 #else
       
    18 #define N_(String) (String)
       
    19 #endif
       
    20 #else /* NLS is disabled */
       
    21 #define _(String) (String)
       
    22 #define N_(String) (String)
       
    23 #define textdomain(String) (String)
       
    24 #define gettext(String) (String)
       
    25 #define dgettext(Domain,String) (String)
       
    26 #define dcgettext(Domain,String,Type) (String)
       
    27 #define bindtextdomain(Domain,Directory) (Domain) 
       
    28 #endif
       
    29 
       
    30 #endif /* __GLIBINTL_H__ */