summaryrefslogtreecommitdiff
path: root/support/poptint.h
diff options
context:
space:
mode:
authorErik Troan <ewt@src.gnome.org>1998-10-22 18:32:55 +0000
committerErik Troan <ewt@src.gnome.org>1998-10-22 18:32:55 +0000
commitd1e612ea0c7db452f7d2bca83ebe0fbd15f1ac42 (patch)
tree30c30f8fbdb50bff0297c01496256d0a1f9d8e1a /support/poptint.h
parent0fe1a70475dfa7889d61c1b58b277d9317c79934 (diff)
downloadshared-mime-info-d1e612ea0c7db452f7d2bca83ebe0fbd15f1ac42.tar.gz
added i18n support
svn path=/trunk/; revision=452
Diffstat (limited to 'support/poptint.h')
-rw-r--r--support/poptint.h18
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