]>
Commit | Line | Data |
---|---|---|
6b354b8b JB |
1 | --- wget-1.10.1/configure.in.orig 2005-08-11 23:35:27.000000000 +0200 |
2 | +++ wget-1.10.1/configure.in 2005-08-28 13:42:34.625493608 +0200 | |
3 | @@ -437,6 +437,7 @@ | |
4 | ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')` | |
65f0aada JB |
5 | |
6 | dnl internationalization macros | |
65f0aada | 7 | +AM_GNU_GETTEXT |
6b354b8b | 8 | WGET_WITH_NLS |
65f0aada JB |
9 | |
10 | dnl | |
6b354b8b JB |
11 | @@ -473,5 +474,4 @@ |
12 | #include "config-post.h" | |
13 | ]) | |
14 | AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) | |
15 | -AC_CONFIG_COMMANDS([default], [WGET_PROCESS_PO]) | |
16 | AC_OUTPUT | |
48ea1035 AM |
17 | diff -urN wget-1.9-b5.org/Makefile.in wget-1.9-b5/Makefile.in |
18 | --- wget-1.9-b5.org/Makefile.in 2003-10-12 23:55:54.000000000 +0200 | |
19 | +++ wget-1.9-b5/Makefile.in 2003-10-13 00:29:14.000000000 +0200 | |
20 | @@ -82,7 +82,7 @@ | |
661545e4 | 21 | manext='$(manext)' |
48ea1035 AM |
22 | |
23 | # subdirectories in the distribution | |
661545e4 AG |
24 | -SUBDIRS = src doc po tests util windows |
25 | +SUBDIRS = src doc intl po tests util windows | |
48ea1035 AM |
26 | |
27 | # default target | |
28 | all: libtool src/config.h Makefile $(SUBDIRS) | |
29 | @@ -106,7 +106,7 @@ | |
30 | ||
31 | # Install `.mo' files | |
32 | install.mo: | |
33 | - cd po && $(MAKE) $(MAKEDEFS) $@ | |
34 | + cd po && $(MAKE) $(MAKEDEFS) install | |
35 | ||
661545e4 AG |
36 | # create tag files for Emacs |
37 | TAGS: | |
5ce934a3 | 38 | --- wget-1.10/src/main.c.orig 2005-06-22 03:25:18.000000000 +0200 |
39 | +++ wget-1.10/src/main.c 2005-06-22 03:25:48.000000000 +0200 | |
661545e4 AG |
40 | @@ -43,7 +43,7 @@ |
41 | #endif /* HAVE_UNISTD_H */ | |
42 | #include <string.h> | |
43 | #include <signal.h> | |
65f0aada JB |
44 | -#ifdef HAVE_NLS |
45 | +#ifdef ENABLE_NLS | |
65f0aada | 46 | # include <locale.h> |
661545e4 | 47 | #endif |
5ce934a3 | 48 | #include <assert.h> |
661545e4 | 49 | @@ -90,13 +90,13 @@ |
65f0aada JB |
50 | static void |
51 | i18n_initialize (void) | |
52 | { | |
5ce934a3 | 53 | - /* HAVE_NLS implies existence of functions invoked here. */ |
65f0aada | 54 | -#ifdef HAVE_NLS |
5ce934a3 | 55 | + /* ENABLE_NLS implies existence of functions invoked here. */ |
65f0aada JB |
56 | +#ifdef ENABLE_NLS |
57 | /* Set the current locale. */ | |
661545e4 | 58 | setlocale (LC_ALL, ""); |
65f0aada JB |
59 | /* Set the text message domain. */ |
60 | bindtextdomain ("wget", LOCALEDIR); | |
61 | textdomain ("wget"); | |
62 | -#endif /* HAVE_NLS */ | |
63 | +#endif /* ENABLE_NLS */ | |
64 | } | |
65 | \f | |
5ce934a3 | 66 | /* Definition of command-line options. */ |
67 | --- wget-1.10/src/wget.h.orig 2005-06-22 03:26:51.000000000 +0200 | |
68 | +++ wget-1.10/src/wget.h 2005-06-22 03:27:04.000000000 +0200 | |
661545e4 | 69 | @@ -50,20 +50,20 @@ |
65f0aada JB |
70 | |
71 | /* `gettext (FOO)' is long to write, so we use `_(FOO)'. If NLS is | |
72 | unavailable, _(STRING) simply returns STRING. */ | |
73 | -#ifdef HAVE_NLS | |
74 | +#ifdef ENABLE_NLS | |
75 | # define _(string) gettext (string) | |
5ce934a3 | 76 | # ifdef HAVE_LIBINTL_H |
65f0aada | 77 | # include <libintl.h> |
5ce934a3 | 78 | # else /* not HAVE_LIBINTL_H */ |
79 | const char *gettext (); | |
80 | # endif /* not HAVE_LIBINTL_H */ | |
65f0aada JB |
81 | -#else /* not HAVE_NLS */ |
82 | +#else /* not ENABLE_NLS */ | |
5ce934a3 | 83 | # define _(string) (string) |
661545e4 AG |
84 | # define ngettext(sing, plur, num) ((num) == 1 ? (sing) : (plur)) |
85 | # undef HAVE_WCHAR_H | |
86 | # undef HAVE_WCWIDTH | |
87 | # undef HAVE_MBTOWC | |
65f0aada JB |
88 | -#endif /* not HAVE_NLS */ |
89 | +#endif /* not ENABLE_NLS */ | |
661545e4 AG |
90 | |
91 | #if HAVE_WCWIDTH && HAVE_MBTOWC | |
92 | # define USE_NLS_PROGRESS_BAR 1 |