summaryrefslogtreecommitdiff
path: root/src/nls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nls.h')
-rw-r--r--src/nls.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/nls.h b/src/nls.h
index 15f89d64..dc52d62c 100644
--- a/src/nls.h
+++ b/src/nls.h
@@ -1,18 +1,22 @@
#ifdef ENABLE_NLS
+# ifdef HAVE_LIBINTL_H
# include <libintl.h>
-# define _(String) gettext (String)
-# ifdef gettext_noop
-# define N_(String) gettext_noop (String)
-# else
-# define N_(String) (String)
-# endif
+# else
+# include "../intl/libgettext.h"
+# endif
+# define _(String) gettext (String)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
#else
/* Stubs that do something close enough. */
-# define textdomain(String) (String)
-# define gettext(String) (String)
-# define dgettext(Domain,Message) (Message)
-# define dcgettext(Domain,Message,Type) (Message)
-# define bindtextdomain(Domain,Directory) (Domain)
-# define _(String) (String)
-# define N_(String) (String)
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define N_(String) (String)
#endif