ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/i18n.h
Revision: 1.4
Committed: Sun Sep 16 18:54:42 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +9 -4 lines
Log Message:
#defines to enum

File Contents

# User Rev Content
1 pippijn 1.4 /**
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 pippijn 1.3 * Copyright © 2005 William Pitcock et al.
10 pippijn 1.2 * Rights to this code are documented in doc/pod/license.pod.
11 pippijn 1.1 *
12 pippijn 1.4 * $Id: i18n.h,v 1.3 2007-08-28 17:08:06 pippijn Exp $
13 pippijn 1.1 */
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