From: micah Date: Mon, 27 Aug 2007 15:35:26 +0000 (-0700) Subject: [svn] Workaround lack of ngettext. X-Git-Tag: v1.13~565 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=cfc064c9b7d697f282c770448f8a79044c44563b [svn] Workaround lack of ngettext. --- 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