GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
glocale.h
Go to the documentation of this file.
1 #ifndef GRASS_GLOCALE_H
2 #define GRASS_GLOCALE_H
3 
4 #include <grass/config.h>
5 
6 #include <grass/defs/glocale.h>
7 
8 #if defined(HAVE_LIBINTL_H) && defined(USE_NLS)
9 #include <libintl.h>
10 #define _(str) G_gettext(PACKAGE,(str))
11 #define n_(strs,strp,num) G_ngettext(PACKAGE,(strs),(strp),num)
12 #else
13 #define _(str) (str)
14 #define n_(strs,strp,num) ((num == 1) ? (strs) : (strp))
15 #endif
16 
17 #endif