[svn] Added spider.c to POTFILES.in; fixed use of gettext with plural forms.

This commit is contained in:
micah 2007-08-26 16:03:58 -07:00
parent 66bf612188
commit 676da61f1d
4 changed files with 14 additions and 10 deletions

View File

@ -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

View 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

View 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

View 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); )