summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-04-07 23:33:05 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-04-13 11:31:05 -0300
commitbe2f03d897d4bfbbe3a9bc66d6169bf067f8546e (patch)
treeb3eccfd6db75d99cdbd8224b993147a9b89529ee /src
parentf305696298bbb90ab4ff3a29305d1e318121bcb9 (diff)
Initial infra-structure for i18n
Diffstat (limited to 'src')
-rw-r--r--src/lib/translation.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/translation.h b/src/lib/translation.h
new file mode 100644
index 0000000..6877b33
--- /dev/null
+++ b/src/lib/translation.h
@@ -0,0 +1,14 @@
1#ifndef __TRANSLATION_H__
2#define __TRANSLATION_H__
3
4#include <libintl.h>
5
6
7#define _(str) gettext(str)
8#define d_(str, dom) dgettext(dom, str)
9#define P_(str, str_p, n) ngettext(str, str_p, n)
10#define dP_(str, str_p, n, dom) dngettext(dom, str, str_p, n)
11#define N_(str) str
12#define NP_(str, str_p) str, str_p
13
14#endif /* __TRANSLATION_H__ */