]>
Commit | Line | Data |
---|---|---|
c908c48e | 1 | // -*- mode: cpp; mode: fold -*- |
80948457 | 2 | // $Id: apti18n.h.in,v 1.4 2002/10/16 05:24:02 jgg Exp $ |
c908c48e AL |
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 | #undef USE_INCLUDED_LIBINTL | |
9 | ||
10 | #if USE_NLS==yes && USE_INCLUDED_LIBINTL==no | |
11 | // apt will use the gettext implementation of the C library | |
12 | # include <libintl.h> | |
80948457 AL |
13 | # ifdef DOMAIN |
14 | # define _(x) dgettext(DOMAIN,x) | |
15 | # else | |
16 | # define _(x) gettext(x) | |
17 | # endif | |
c908c48e AL |
18 | #else |
19 | // apt will not use any gettext | |
20 | # define setlocale(a, b) | |
c908c48e AL |
21 | # define _(x) x |
22 | #endif |