From 6b1586fa8cd633bf286e8d9daee3601e4b3686dc Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 22 Oct 1998 18:32:50 +0000 Subject: added i18n support --- poptint.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'poptint.h') diff --git a/poptint.h b/poptint.h index 195039a..5d99be5 100644 --- a/poptint.h +++ b/poptint.h @@ -43,4 +43,22 @@ struct poptContext_s { char * otherHelp; }; +#ifdef HAVE_LIBINTL_H +#include +#endif + +#ifdef HAVE_GETTEXT +#define _(foo) gettext(foo) +#else +#define _(foo) (foo) +#endif + +#ifdef HAVE_DGETTEXT +#define POPT_(foo) dgettext("popt", foo) +#else +#define POPT_(foo) (foo) +#endif + +#define N_(foo) (foo) + #endif -- cgit v1.2.1