diff options
author | Erik Troan <ewt@src.gnome.org> | 1998-10-22 18:32:55 +0000 |
---|---|---|
committer | Erik Troan <ewt@src.gnome.org> | 1998-10-22 18:32:55 +0000 |
commit | d1e612ea0c7db452f7d2bca83ebe0fbd15f1ac42 (patch) | |
tree | 30c30f8fbdb50bff0297c01496256d0a1f9d8e1a /support/poptint.h | |
parent | 0fe1a70475dfa7889d61c1b58b277d9317c79934 (diff) | |
download | shared-mime-info-d1e612ea0c7db452f7d2bca83ebe0fbd15f1ac42.tar.gz |
added i18n support
svn path=/trunk/; revision=452
Diffstat (limited to 'support/poptint.h')
-rw-r--r-- | support/poptint.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support/poptint.h b/support/poptint.h index 195039ad..5d99be57 100644 --- a/support/poptint.h +++ b/support/poptint.h @@ -43,4 +43,22 @@ struct poptContext_s { char * otherHelp; }; +#ifdef HAVE_LIBINTL_H +#include <libintl.h> +#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 |