Mon, 17 Jan 2005 22:02:09 +0100
trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.
81 | 1 | /* |
2 | * libtu/locale.h | |
3 | * | |
4 | * Copyright (c) Tuomo Valkonen 2004. | |
5 | * | |
6 | * You may distribute and modify this library under the terms of either | |
7 | * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. | |
8 | */ | |
9 | ||
10 | #ifndef LIBTU_LOCALE_H | |
11 | #define LIBTU_LOCALE_H | |
12 | ||
13 | #ifdef CF_NO_LOCALE | |
14 | ||
15 | #define TR(X) X | |
16 | #define DUMMY_TR(X) X | |
17 | ||
18 | #else | |
19 | ||
20 | #include <libintl.h> | |
21 | ||
22 | #define TR(X) gettext(X) | |
23 | #define DUMMY_TR(X) X | |
24 | ||
25 | #endif | |
26 | ||
27 | #endif /* LIBTU_LOCALE_H */ |