]> sjero.net Git - wget/commitdiff
[svn] Workaround lack of ngettext.
authormicah <devnull@localhost>
Mon, 27 Aug 2007 15:35:26 +0000 (08:35 -0700)
committermicah <devnull@localhost>
Mon, 27 Aug 2007 15:35:26 +0000 (08:35 -0700)
src/ChangeLog
src/wget.h

index 5d9066153e39c61565f6c08576ffceb13040aac9..4eb61f4a12f138b67a0eadbd117420fc29841327 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-27  Micah Cowan  <micah@cowan.name>
+
+       * wget.h: Added macro replacement for ngettext, for environs
+       that lack NLS.
+
 2007-08-26  Micah Cowan  <micah@cowan.name>
 
        * spider.c (print_broken_links): Fixed incorrect plurals msgid
index 6d35190f85dea294d4ad2d5525d1fdd37cb0d0a1..45b34d60fe75b3bffadef33fbd9b5c29fb5aea64 100644 (file)
@@ -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