1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

ENABLE_NLS now, not HAVE_NLS.

This commit is contained in:
Micah Cowan 2007-10-09 13:30:04 -07:00
parent e73b52c52c
commit a33fa2dbe0
2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,7 @@
of --disable-nls. of --disable-nls.
* wget.h: Remove logic for handling lack of NLS (now in * wget.h: Remove logic for handling lack of NLS (now in
gettext.h). gettext.h).
* main.c: Use gettext's ENABLE_NLS rather than HAVE_NLS.
2007-10-08 Micah Cowan <micah@cowan.name> 2007-10-08 Micah Cowan <micah@cowan.name>

View File

@ -36,7 +36,7 @@ so, delete this exception statement from your version. */
#endif /* HAVE_UNISTD_H */ #endif /* HAVE_UNISTD_H */
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>
#ifdef HAVE_NLS #ifdef ENABLE_NLS
# include <locale.h> # include <locale.h>
#endif #endif
#include <assert.h> #include <assert.h>
@ -80,14 +80,14 @@ const char *exec_name;
static void static void
i18n_initialize (void) i18n_initialize (void)
{ {
/* HAVE_NLS implies existence of functions invoked here. */ /* ENABLE_NLS implies existence of functions invoked here. */
#ifdef HAVE_NLS #ifdef ENABLE_NLS
/* Set the current locale. */ /* Set the current locale. */
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
/* Set the text message domain. */ /* Set the text message domain. */
bindtextdomain ("wget", LOCALEDIR); bindtextdomain ("wget", LOCALEDIR);
textdomain ("wget"); textdomain ("wget");
#endif /* HAVE_NLS */ #endif /* ENABLE_NLS */
} }
/* Definition of command-line options. */ /* Definition of command-line options. */