From cfc064c9b7d697f282c770448f8a79044c44563b Mon Sep 17 00:00:00 2001 From: micah Date: Mon, 27 Aug 2007 08:35:26 -0700 Subject: [PATCH] [svn] Workaround lack of ngettext. --- src/ChangeLog | 5 +++++ src/wget.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 5d906615..4eb61f4a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-27 Micah Cowan + + * wget.h: Added macro replacement for ngettext, for environs + that lack NLS. + 2007-08-26 Micah Cowan * spider.c (print_broken_links): Fixed incorrect plurals msgid diff --git a/src/wget.h b/src/wget.h index 6d35190f..45b34d60 100644 --- a/src/wget.h +++ b/src/wget.h @@ -55,6 +55,7 @@ so, delete this exception statement from your version. */ # endif /* not HAVE_LIBINTL_H */ #else /* not HAVE_NLS */ # define _(string) (string) +# define ngettext(sing, plur, num) ((num) == 1 ? (sing) : (plur)) #endif /* not HAVE_NLS */ /* A pseudo function call that serves as a marker for the automated -- 2.39.2