]> git.saurik.com Git - apt.git/blame - CMake/apti18n.h.in
Release 1.3.1
[apt.git] / CMake / apti18n.h.in
CommitLineData
f3de2dba
JAK
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#cmakedefine USE_NLS
8
9#ifdef USE_NLS
10// apt will use the gettext implementation of the C library
11#include <libintl.h>
12#include <locale.h>
13# ifdef APT_DOMAIN
14# define _(x) dgettext(APT_DOMAIN,x)
15# define P_(msg,plural,n) dngettext(APT_DOMAIN,msg,plural,n)
16# else
17# define _(x) gettext(x)
18# define P_(msg,plural,n) ngettext(msg,plural,n)
19# endif
20# define N_(x) x
21#else
22// apt will not use any gettext
23# define setlocale(a, b)
24# define textdomain(a)
25# define bindtextdomain(a, b)
26# define _(x) x
27# define P_(msg,plural,n) (n == 1 ? msg : plural)
28# define N_(x) x
29# define dgettext(d, m) m
30#endif