apti18n.h.in 557 B

1234567891011121314151617181920212223
  1. // -*- mode: cpp; mode: fold -*-
  2. // $Id: apti18n.h.in,v 1.4 2002/10/16 05:24:02 jgg Exp $
  3. /* Internationalization macros for apt. This header should be included last
  4. in each C file. */
  5. // Set by autoconf
  6. #undef USE_NLS
  7. #undef USE_INCLUDED_LIBINTL
  8. #if USE_NLS==yes && USE_INCLUDED_LIBINTL==no
  9. // apt will use the gettext implementation of the C library
  10. # include <libintl.h>
  11. # ifdef DOMAIN
  12. # define _(x) dgettext(DOMAIN,x)
  13. # else
  14. # define _(x) gettext(x)
  15. # endif
  16. #else
  17. // apt will not use any gettext
  18. # define setlocale(a, b)
  19. # define _(x) x
  20. #endif