glocale.h 381 B

123456789101112131415161718
  1. #ifndef GRASS_GLOCALE_H
  2. #define GRASS_GLOCALE_H
  3. #include <grass/config.h>
  4. #include <grass/defs/glocale.h>
  5. #if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
  6. #include <libintl.h>
  7. #define _(str) G_gettext(PACKAGE,(str))
  8. #define n_(strs,strp,num) G_ngettext(PACKAGE,(strs),(strp),num)
  9. #else
  10. #define _(str) (str)
  11. #define n_(strs,strp,num) ((num == 1) ? (strs) : (strp))
  12. #endif
  13. #endif