/[zanavi_public1]/navit/navit/navit_nls.h
ZANavi

Contents of /navit/navit/navit_nls.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (8 years, 2 months ago) by zoff99
File MIME type: text/plain
File size: 557 byte(s)
import files
1 #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