5 kx
5 kx #ifndef __SUPPORT_NLS__
5 kx #define __SUPPORT_NLS__ 1
5 kx
5 kx #if ENABLE_NLS == 1
5 kx
5 kx #ifndef _
5 kx # include <gettext.h>
5 kx # ifndef _
5 kx # define _(s) gettext(s)
5 kx # endif
5 kx # ifdef gettext_noop
5 kx # define N_(s) gettext_noop(s)
5 kx # else
5 kx # define N_(s) (s)
5 kx # endif
5 kx # ifdef ngettext
5 kx # define Q_(s, p, n) ngettext( s, p, n )
5 kx # else
5 kx # define Q_(s, p, n) ((n==1) ? gettext(s) : gettext(p))
5 kx # endif
5 kx #endif /* !_ */
5 kx
5 kx #else
5 kx
5 kx # define _(s) (s)
5 kx # define N_(s) (s)
5 kx # define Q_(s, p, n) ((n == 1) ? (s) : (p))
5 kx
5 kx #endif
5 kx
5 kx #endif /* __SUPPORT_NLS__ */