apti18n.h.in 594 B

1234567891011121314151617181920212223242526
  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. // Set by autoconf
  6. #undef USE_NLS
  7. #ifdef USE_NLS
  8. // apt will use the gettext implementation of the C library
  9. # include <libintl.h>
  10. # ifdef APT_DOMAIN
  11. # define _(x) dgettext(APT_DOMAIN,x)
  12. # else
  13. # define _(x) gettext(x)
  14. # endif
  15. # define N_(x) x
  16. #else
  17. // apt will not use any gettext
  18. # define setlocale(a, b)
  19. # define textdomain(a)
  20. # define bindtextdomain(a, b)
  21. # define _(x) x
  22. # define N_(x) x
  23. #endif