]> git.saurik.com Git - apt.git/blob - buildlib/apti18n.h.in
* apt-pkg/contrib/fileutl.cc:
[apt.git] / buildlib / apti18n.h.in
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 # define P_(msg,plural,n) dngettext(APT_DOMAIN,msg,plural,n)
15 # else
16 # define _(x) gettext(x)
17 # define P_(msg,plural,n) ngettext(msg,plural,n)
18 # endif
19 # define N_(x) x
20 #else
21 // apt will not use any gettext
22 # define setlocale(a, b)
23 # define textdomain(a)
24 # define bindtextdomain(a, b)
25 # define _(x) x
26 # define P_(msg,plural,n) (n == 1 ? msg : plural)
27 # define N_(x) x
28 #endif