Navit SVN

/work/compile/navit/src/navit/navit_nls.h

00001 #ifndef __NAVIT_NLS_H__
00002 #include "config.h"
00003 
00004 #ifdef ENABLE_NLS
00005 #ifdef USE_LIBGNUINTL
00006 #include <libgnuintl.h>
00007 #else
00008 #include <libintl.h>
00009 #endif
00010 #define _(STRING)    gettext(STRING)
00011 #define gettext_noop(String) String
00012 #define _n(STRING)    gettext_noop(STRING)
00013 #else
00014 #define _(STRING) STRING
00015 #define _n(STRING) STRING
00016 #define gettext(STRING) STRING
00017 static inline const char *ngettext(const char *msgid, const char *msgid_plural, unsigned long int n)
00018 {
00019         if (n == 1) {
00020                 return msgid;
00021         } else {
00022                 return msgid_plural;
00023         }
00024 }
00025 #endif
00026 #define __NAVIT_NLS_H__
00027 #endif