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