]>
Commit | Line | Data |
---|---|---|
da6ee469 JF |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // $Id: apti18n.h.in,v 1.6 2003/01/11 07:18:18 jgg Exp $ | |
3 | /* Internationalization macros for apt. This header should be included last | |
4 | in each C file. */ | |
5 | ||
6 | // Set by autoconf | |
7 | #undef USE_NLS | |
8 | ||
9 | #ifdef USE_NLS | |
10 | // apt will use the gettext implementation of the C library | |
11 | # include <libintl.h> | |
12 | # ifdef APT_DOMAIN | |
13 | # define _(x) dgettext(APT_DOMAIN,x) | |
14 | # else | |
15 | # define _(x) gettext(x) | |
16 | # endif | |
17 | # define N_(x) x | |
18 | #else | |
19 | // apt will not use any gettext | |
20 | # define setlocale(a, b) | |
00ec24d0 JF |
21 | # define textdomain(a) |
22 | # define bindtextdomain(a, b) | |
da6ee469 JF |
23 | # define _(x) x |
24 | # define N_(x) x | |
25 | #endif |