summaryrefslogtreecommitdiff
path: root/src/lib/translation.h
blob: 6877b3332972586230adecf49f1d6a40b913bc60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __TRANSLATION_H__
#define __TRANSLATION_H__

#include <libintl.h>


#define _(str) gettext(str)
#define d_(str, dom) dgettext(dom, str)
#define P_(str, str_p, n) ngettext(str, str_p, n)
#define dP_(str, str_p, n, dom) dngettext(dom, str, str_p, n)
#define N_(str) str
#define NP_(str, str_p) str, str_p

#endif /* __TRANSLATION_H__ */