summaryrefslogtreecommitdiff
path: root/buildlib/apti18n.h.in
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:33 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:33 +0000
commit809484570008da67b0dcd291af7673481fff52f6 (patch)
tree31609d2257d09f9fc20bdc550982f700223bf781 /buildlib/apti18n.h.in
parent89409d33dc8d3156d089f4f90a02b39a04a9d952 (diff)
gettext stuff
Author: jgg Date: 2002-10-16 05:24:02 GMT gettext stuff
Diffstat (limited to 'buildlib/apti18n.h.in')
-rw-r--r--buildlib/apti18n.h.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/buildlib/apti18n.h.in b/buildlib/apti18n.h.in
index 49c5b0cd4..9bdd6bbca 100644
--- a/buildlib/apti18n.h.in
+++ b/buildlib/apti18n.h.in
@@ -1,5 +1,5 @@
// -*- mode: cpp; mode: fold -*-
-// $Id: apti18n.h.in,v 1.3 2002/01/09 04:16:33 jgg Exp $
+// $Id: apti18n.h.in,v 1.4 2002/10/16 05:24:02 jgg Exp $
/* Internationalization macros for apt. This header should be included last
in each C file. */
@@ -10,10 +10,13 @@
#if USE_NLS==yes && USE_INCLUDED_LIBINTL==no
// apt will use the gettext implementation of the C library
# include <libintl.h>
-# define _(x) gettext(x)
+# ifdef DOMAIN
+# define _(x) dgettext(DOMAIN,x)
+# else
+# define _(x) gettext(x)
+# endif
#else
// apt will not use any gettext
# define setlocale(a, b)
-# define textdomain(a)
# define _(x) x
#endif