]> git.pld-linux.org Git - packages/wget.git/blob - wget-ac.patch
- plural forms fixed
[packages/wget.git] / wget-ac.patch
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' ' ')`
5  
6  dnl internationalization macros
7 +AM_GNU_GETTEXT
8  WGET_WITH_NLS
9  
10  dnl
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
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 @@
21  manext='$(manext)'
22  
23  # subdirectories in the distribution
24 -SUBDIRS = src doc po tests util windows
25 +SUBDIRS = src doc intl po tests util windows
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  
36  # create tag files for Emacs
37  TAGS:
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
40 @@ -43,7 +43,7 @@
41  #endif /* HAVE_UNISTD_H */
42  #include <string.h>
43  #include <signal.h>
44 -#ifdef HAVE_NLS
45 +#ifdef ENABLE_NLS
46  # include <locale.h>
47  #endif
48  #include <assert.h>
49 @@ -90,13 +90,13 @@
50  static void
51  i18n_initialize (void)
52  {
53 -  /* HAVE_NLS implies existence of functions invoked here.  */
54 -#ifdef HAVE_NLS
55 +  /* ENABLE_NLS implies existence of functions invoked here.  */
56 +#ifdef ENABLE_NLS
57    /* Set the current locale.  */
58    setlocale (LC_ALL, "");
59    /* Set the text message domain.  */
60    bindtextdomain ("wget", LOCALEDIR);
61    textdomain ("wget");
62 -#endif /* HAVE_NLS */
63 +#endif /* ENABLE_NLS */
64  }
65  \f
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
69 @@ -50,20 +50,20 @@
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)
76  # ifdef HAVE_LIBINTL_H
77  #  include <libintl.h>
78  # else  /* not HAVE_LIBINTL_H */
79     const char *gettext ();
80  # endif /* not HAVE_LIBINTL_H */
81 -#else  /* not HAVE_NLS */
82 +#else  /* not ENABLE_NLS */
83  # define _(string) (string)
84  # define ngettext(sing, plur, num)  ((num) == 1 ? (sing) : (plur))
85  # undef HAVE_WCHAR_H
86  # undef HAVE_WCWIDTH
87  # undef HAVE_MBTOWC
88 -#endif /* not HAVE_NLS */
89 +#endif /* not ENABLE_NLS */
90
91  #if HAVE_WCWIDTH && HAVE_MBTOWC
92  # define USE_NLS_PROGRESS_BAR 1
This page took 0.030302 seconds and 3 git commands to generate.