apti18n.h.in 568 B

1234567891011121314151617181920212223
  1. // -*- mode: cpp; mode: fold -*-
  2. // $Id: apti18n.h.in,v 1.5 2002/11/11 07:00:16 doogie 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 APT_DOMAIN
  12. # define _(x) dgettext(APT_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