1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[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> 2007-08-24 Micah Cowan <micah@cowan.name>
* po/no.po: removed; replaced by nb.po (per the translation * po/no.po: removed; replaced by nb.po (per the translation

View File

@ -29,6 +29,7 @@ src/ptimer.c
src/recur.c src/recur.c
src/res.c src/res.c
src/retr.c src/retr.c
src/spider.c
src/url.c src/url.c
src/utils.c src/utils.c
src/version.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> 2007-08-23 Joshua David Williams <yurimxpxman@gmail.com>
* spider.c (in_url_list_p): Removed the bool verbose argument * spider.c (in_url_list_p): Removed the bool verbose argument

View File

@ -141,15 +141,9 @@ print_broken_links (void)
num_elems = hash_table_count (nonexisting_urls_set); num_elems = hash_table_count (nonexisting_urls_set);
assert (num_elems > 0); assert (num_elems > 0);
if (num_elems > 1) logprintf (LOG_NOTQUIET, ngettext("Found %d broken link.\n\n",
{ "Found %d broken links.\n\n", num_elems),
logprintf (LOG_NOTQUIET, _("Found %d broken links.\n\n"),
num_elems); num_elems);
}
else
{
logprintf (LOG_NOTQUIET, _("Found 1 broken link.\n\n"));
}
for (hash_table_iterate (nonexisting_urls_set, &iter); for (hash_table_iterate (nonexisting_urls_set, &iter);
hash_table_iter_next (&iter); ) hash_table_iter_next (&iter); )