summaryrefslogtreecommitdiff
path: root/poptint.h
diff options
context:
space:
mode:
authorewt <ewt>1998-10-22 18:32:50 +0000
committerewt <ewt>1998-10-22 18:32:50 +0000
commit6b1586fa8cd633bf286e8d9daee3601e4b3686dc (patch)
treee60507d56df8309ac810ea93a407cefc92a2b6c0 /poptint.h
parentdaa8c41cf8677067a07e58dc65e076ee1447758c (diff)
downloadlibpopt-6b1586fa8cd633bf286e8d9daee3601e4b3686dc.tar.gz
added i18n support
Diffstat (limited to 'poptint.h')
-rw-r--r--poptint.h18
1 files changed, 18 insertions, 0 deletions
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 <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