summaryrefslogtreecommitdiff
path: root/bashintl.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-03 12:52:47 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-03 12:52:47 -0500
commit5e13499c55639e93fbe46ce3dc053d74e5578cf9 (patch)
treefa9727e25343ed0d726c0690e3e255f9f696d422 /bashintl.h
parentd3a24ed242e91e6afb53b2cbf38b89667637168d (diff)
downloadbash-5e13499c55639e93fbe46ce3dc053d74e5578cf9.tar.gz
commit bash-20040107 snapshot
Diffstat (limited to 'bashintl.h')
-rw-r--r--bashintl.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/bashintl.h b/bashintl.h
index f9e6cdbb..12068e48 100644
--- a/bashintl.h
+++ b/bashintl.h
@@ -1,6 +1,6 @@
/* bashintl.h -- Internationalization stuff
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996-2003 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -21,15 +21,22 @@
#if !defined (_BASHINTL_H_)
#define _BASHINTL_H_
-/* Include this *after* config.h */
-#if defined (HAVE_LIBINTL_H)
-# include <libintl.h>
+#if defined (BUILDTOOL)
+# undef ENABLE_NLS
+# define ENABLE_NLS 0
#endif
+/* Include this *after* config.h */
+#include "gettext.h"
+
#if defined (HAVE_LOCALE_H)
# include <locale.h>
#endif
+#define _(msgid) gettext(msgid)
+#define N_(msgid) msgid
+#define D_(d, msgid) dgettext(d, msgid)
+
#if defined (HAVE_SETLOCALE) && !defined (LC_ALL)
# undef HAVE_SETLOCALE
#endif
@@ -38,12 +45,4 @@
# define setlocale(cat, loc)
#endif
-#if !defined (HAVE_TEXTDOMAIN)
-# define textdomain(dom)
-#endif
-
-#if !defined (HAVE_BINDTEXTDOMAIN)
-# define bindtextdomain(dom, dir)
-#endif
-
#endif /* !_BASHINTL_H_ */