summaryrefslogtreecommitdiff
path: root/navit/navit_nls.h
blob: 560d871585547a09e07d8e7bb7edb6f0813ae116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __NAVIT_NLS_H__
#include "config.h"

#ifdef ENABLE_NLS
#ifdef USE_LIBGNUINTL
#include <libgnuintl.h>
#else
#include <libintl.h>
#endif
#define _(STRING)    gettext(STRING)
#define gettext_noop(String) String
#define _n(STRING)    gettext_noop(STRING)
#else
#define _(STRING) STRING
#define _n(STRING) STRING
#define gettext(STRING) STRING
static inline const char *ngettext(const char *msgid, const char *msgid_plural, unsigned long int n)
{
	if (n == 1) {
		return msgid;
	} else {
		return msgid_plural;
	}
}
#endif
#define __NAVIT_NLS_H__
#endif