Parent Directory | Revision Log
import files
1 | zoff99 | 2 | #ifndef __NAVIT_NLS_H__ |
2 | #include "config.h" | ||
3 | |||
4 | #ifdef ENABLE_NLS | ||
5 | #ifdef USE_LIBGNUINTL | ||
6 | #include <libgnuintl.h> | ||
7 | #else | ||
8 | #include <libintl.h> | ||
9 | #endif | ||
10 | #define _(STRING) gettext(STRING) | ||
11 | #define gettext_noop(String) String | ||
12 | #define _n(STRING) gettext_noop(STRING) | ||
13 | #else | ||
14 | #define _(STRING) STRING | ||
15 | #define _n(STRING) STRING | ||
16 | #define gettext(STRING) STRING | ||
17 | static inline const char *ngettext(const char *msgid, const char *msgid_plural, unsigned long int n) | ||
18 | { | ||
19 | if (n == 1) { | ||
20 | return msgid; | ||
21 | } else { | ||
22 | return msgid_plural; | ||
23 | } | ||
24 | } | ||
25 | #endif | ||
26 | #define __NAVIT_NLS_H__ | ||
27 | #endif |
Visit the ZANavi Wiki |