Revision: | 1.3 |
Committed: | Tue Aug 28 17:08:06 2007 UTC (16 years, 9 months ago) by pippijn |
Content type: | text/plain |
Branch: | MAIN |
Changes since 1.2: | +2 -2 lines |
Log Message: | - changed name - updated the example config to the new system - added more documentation - enhanced documentation generators - added a link to the pdf to the website - added an RSS feed generator - transitioned hooks to c++ callbacks - did various merges with upstream along the way - added const where appropriate - removed the old block allocator - fixed most memory leaks - transitioned some dictionaries to std::map - transitioned some lists to std::vector - made some free functions members where appropriate - renamed string to dynstr and added a static string ststr - use NOW instead of time (NULL) if possible - completely reworked database backends, crypto handlers and protocol handlers to use an object factory - removed the old module system. ermyth does not do any dynamic loading anymore - fixed most of the build system - reworked how protocol commands work |
# | 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.2 2007-07-21 01:29:07 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 |