ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/include/i18n.h
Revision: 1.2
Committed: Sat Jul 21 01:29:07 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.1: +2 -2 lines
Log Message:
- moved to new documentation system
- fixed small build error

File Contents

# Content
1 /*
2 * Copyright © 2005 William Pitcock et al.
3 * Rights to this code are documented in doc/pod/license.pod.
4 *
5 * This is the header which includes all of the internationalization stuff.
6 *
7 * $Id: i18n.h,v 1.1 2007-07-19 08:24:50 pippijn Exp $
8 */
9
10 #ifndef __ATHEME_INTL_H__
11 #define __ATHEME_INTL_H__
12
13 #ifdef ENABLE_NLS
14 # include <locale.h>
15 # include <libintl.h>
16 # define _(String) gettext (String)
17 # ifdef gettext_noop
18 # define N_(String) gettext_noop (String)
19 # else
20 # define N_(String) (String)
21 # endif
22 #else
23 # define _(x) (x)
24 # define N_(x) (x)
25 # define ngettext(s1, sn, n) ((n) == 1 ? (s1) : (sn))
26 #endif
27
28 #endif