1 |
/** |
2 |
* i18n.h: This is the header which includes all of the internationalization stuff. |
3 |
* |
4 |
* Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
5 |
* Rights to this code are as documented in COPYING. |
6 |
* |
7 |
* |
8 |
* Portions of this file were derived from sources bearing the following license: |
9 |
* Copyright © 2005 William Pitcock et al. |
10 |
* Rights to this code are documented in doc/pod/license.pod. |
11 |
* |
12 |
* $Id: i18n.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $ |
13 |
*/ |
14 |
|
15 |
#ifndef __ATHEME_INTL_H__ |
16 |
#define __ATHEME_INTL_H__ |
17 |
|
18 |
#ifdef ENABLE_NLS |
19 |
# include <locale.h> |
20 |
# include <libintl.h> |
21 |
# define _(String) gettext (String) |
22 |
# ifdef gettext_noop |
23 |
# define N_(String) gettext_noop (String) |
24 |
# else |
25 |
# define N_(String) (String) |
26 |
# endif |
27 |
#else |
28 |
# define _(x) (x) |
29 |
# define N_(x) (x) |
30 |
# define ngettext(s1, sn, n) ((n) == 1 ? (s1) : (sn)) |
31 |
#endif |
32 |
|
33 |
#endif |