]> sjero.net Git - wget/commitdiff
[svn] Added spider.c to POTFILES.in; fixed use of gettext with plural forms.
authormicah <devnull@localhost>
Sun, 26 Aug 2007 23:03:58 +0000 (16:03 -0700)
committermicah <devnull@localhost>
Sun, 26 Aug 2007 23:03:58 +0000 (16:03 -0700)
ChangeLog
po/POTFILES.in
src/ChangeLog
src/spider.c

index 009587c6fd8619e5819ea91d5b09b483811f3ee2..e8ba39630a43ec827b52449787e88b3114a7389e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-26  Micah Cowan  <micah@cowan.name>
+
+       * po/POTFILES.in: Added spider.c.
+
 2007-08-24  Micah Cowan  <micah@cowan.name>
 
        * po/no.po: removed; replaced by nb.po (per the translation
index 8c9f81ebb5615466102bae6eae628d9b19a55553..12e543cd0b5960df4744574f2c5e901f6450b205 100644 (file)
@@ -29,6 +29,7 @@ src/ptimer.c
 src/recur.c
 src/res.c
 src/retr.c
+src/spider.c
 src/url.c
 src/utils.c
 src/version.c
index 5e4e81eccf1b537974720b486879ea7a7e85e2ca..5d9066153e39c61565f6c08576ffceb13040aac9 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-26  Micah Cowan  <micah@cowan.name>
+
+       * spider.c (print_broken_links): Fixed incorrect plurals msgid
+       usage, switched to use ngettext function.
+
 2007-08-23  Joshua David Williams  <yurimxpxman@gmail.com>
 
        * spider.c (in_url_list_p): Removed the bool verbose argument
index 184ac35b856399eeb913cb3f986cb6c655852d23..183d8d2b4333d89e318b3434e35d93dc6ea53e03 100644 (file)
@@ -140,16 +140,10 @@ print_broken_links (void)
   
   num_elems = hash_table_count (nonexisting_urls_set);
   assert (num_elems > 0);
-  
-  if (num_elems > 1) 
-    {
-      logprintf (LOG_NOTQUIET, _("Found %d broken links.\n\n"), 
-                 num_elems);
-    }
-  else
-    {
-      logprintf (LOG_NOTQUIET, _("Found 1 broken link.\n\n"));
-    }
+
+  logprintf (LOG_NOTQUIET, ngettext("Found %d broken link.\n\n",
+                                    "Found %d broken links.\n\n", num_elems),
+             num_elems);
   
   for (hash_table_iterate (nonexisting_urls_set, &iter);
        hash_table_iter_next (&iter); )