Navit SVN

/work/compile/navit/src/navit/support/glib/glibintl.h

00001 #ifndef __GLIBINTL_H__
00002 #define __GLIBINTL_H__
00003 
00004 #if NOT_NEEDED_FOR_NAVIT
00005 #ifndef SIZEOF_CHAR
00006 #error "config.h must be included prior to glibintl.h"
00007 #endif
00008 #endif /* NOT_NEEDED_FOR_NAVIT */
00009 
00010 G_CONST_RETURN gchar *glib_gettext (const gchar *str);
00011 
00012 #ifdef ENABLE_NLS
00013 
00014 #include "navit_nls.h"
00015 #undef _
00016 #undef gettext_noop
00017 #undef _n
00018 
00019 #define _(String) glib_gettext(String)
00020 /* Split out this in the code, but keep it in the same domain for now */
00021 #define P_(String) glib_gettext(String)
00022 
00023 #ifdef gettext_noop
00024 #define N_(String) gettext_noop(String)
00025 #else
00026 #define N_(String) (String)
00027 #endif
00028 #else /* NLS is disabled */
00029 #define _(String) (String)
00030 #define N_(String) (String)
00031 #define P_(String) (String)
00032 #define textdomain(String) (String)
00033 #define gettext(String) (String)
00034 #define dgettext(Domain,String) (String)
00035 #define dcgettext(Domain,String,Type) (String)
00036 #define dngettext(Domain,String1,String2,N) ((N) == 1 ? (String1) : (String2))
00037 #define bindtextdomain(Domain,Directory) (Domain) 
00038 #endif
00039 
00040 /* not really I18N-related, but also a string marker macro */
00041 #define I_(string) g_intern_static_string (string)
00042 
00043 #endif /* __GLIBINTL_H__ */