summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-25 15:38:17 +0000
committerJim Meyering <jim@meyering.net>2002-04-25 15:38:17 +0000
commit1bb22e30754a064f8664beaf902d6061118b2e70 (patch)
tree33f9781332ce2993b6777d22b72f76c1415f9c4d /src
parentfc7d0fef5f062c8a1e3a641ba1cb0826c8f6333f (diff)
downloadcoreutils-1bb22e30754a064f8664beaf902d6061118b2e70.tar.xz
Remove ENABLE_NLS-related code.
(_, N_) Remove definitions. Include "gettext.h" instead.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 610c1fd0a..909b7d9b0 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -260,27 +260,14 @@ char *alloca ();
#if HAVE_LOCALE_H
# include <locale.h>
-#endif
-#if !HAVE_SETLOCALE
+#else
# define setlocale(Category, Locale) /* empty */
#endif
-#if ENABLE_NLS
-# include <libintl.h>
-# if HAVE_GETTEXT && !HAVE_DCGETTEXT && !defined dcgettext
-# define dcgettext(Domain, Text, Category) Text
-# endif
-# define _(Text) gettext (Text)
-#else
-# undef bindtextdomain
-# define bindtextdomain(Domain, Directory) /* empty */
-# undef textdomain
-# define textdomain(Domain) /* empty */
-# undef dcgettext
-# define dcgettext(Domainname, Text, Category) Text
-# define _(Text) Text
-#endif
-#define N_(Text) Text
+#include "gettext.h"
+
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
#define STREQ(a, b) (strcmp ((a), (b)) == 0)