]> git.saurik.com Git - apt.git/blame - buildlib/apti18n.h.in
protect only the latest same-source providers from autoremove
[apt.git] / buildlib / apti18n.h.in
CommitLineData
c908c48e 1// -*- mode: cpp; mode: fold -*-
ec2f559a 2// $Id: apti18n.h.in,v 1.6 2003/01/11 07:18:18 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
c908c48e 8
ec2f559a 9#ifdef USE_NLS
c908c48e 10// apt will use the gettext implementation of the C library
453b82a3
DK
11#include <libintl.h>
12#include <locale.h>
c6e8074f
AL
13# ifdef APT_DOMAIN
14# define _(x) dgettext(APT_DOMAIN,x)
f0f2f956 15# define P_(msg,plural,n) dngettext(APT_DOMAIN,msg,plural,n)
80948457
AL
16# else
17# define _(x) gettext(x)
f0f2f956 18# define P_(msg,plural,n) ngettext(msg,plural,n)
80948457 19# endif
21e1008e 20# define N_(x) x
c908c48e
AL
21#else
22// apt will not use any gettext
23# define setlocale(a, b)
8cd53bd4
LB
24# define textdomain(a)
25# define bindtextdomain(a, b)
c908c48e 26# define _(x) x
f0f2f956 27# define P_(msg,plural,n) (n == 1 ? msg : plural)
21e1008e 28# define N_(x) x
f431dc62 29# define dgettext(d, m) m
c908c48e 30#endif