[svn] Gettext-ize previously missed messages.

By Benno Schulenberg.
This commit is contained in:
hniksic 2005-06-15 13:26:37 -07:00
parent 4f22c2f567
commit 4206f96614
7 changed files with 17 additions and 11 deletions

View File

@ -1,6 +1,12 @@
2005-06-15 Hrvoje Niksic <hniksic@xemacs.org>
* ftp-basic.c (ftp_pwd): Handle malformed PWD response.
* http.c (gethttp): Also report the system error when the POST
data file is missing.
2005-06-15 Benno Schulenberg <benno@nietvergeten.nl>
* ftp.c, http.c, connect.c, cookies.c, html-url.c, init.c, res.c:
Gettext-ize messages that were previously missed.
2005-06-15 Hrvoje Niksic <hniksic@xemacs.org>

View File

@ -344,7 +344,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
if (sock >= 0)
fd_close (sock);
if (print)
logprintf (LOG_VERBOSE, "failed: %s.\n", strerror (errno));
logprintf (LOG_VERBOSE, _("failed: %s.\n"), strerror (errno));
errno = save_errno;
return -1;
}

View File

@ -862,7 +862,7 @@ cookie_handle_set_cookie (struct cookie_jar *jar,
if (!check_domain_match (cookie->domain, host))
{
logprintf (LOG_NOTQUIET,
"Cookie coming from %s attempted to set domain to %s\n",
_("Cookie coming from %s attempted to set domain to %s\n"),
escnonprint (host), escnonprint (cookie->domain));
xfree (cookie->domain);
goto copy_domain;
@ -1317,7 +1317,7 @@ cookie_jar_load (struct cookie_jar *jar, const char *file)
FILE *fp = fopen (file, "r");
if (!fp)
{
logprintf (LOG_NOTQUIET, "Cannot open cookies file `%s': %s\n",
logprintf (LOG_NOTQUIET, _("Cannot open cookies file `%s': %s\n"),
file, strerror (errno));
return;
}

View File

@ -1111,7 +1111,7 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con)
if (opt.noclobber && file_exists_p (con->target))
{
logprintf (LOG_VERBOSE,
_("File `%s' already there, not retrieving.\n"), con->target);
_("File `%s' already there; not retrieving.\n"), con->target);
/* If the file is there, we suppose it's retrieved OK. */
return RETROK;
}

View File

@ -702,7 +702,7 @@ get_urls_file (const char *file)
url = url_parse (url_text, &up_error_code);
if (!url)
{
logprintf (LOG_NOTQUIET, "%s: Invalid URL %s: %s\n",
logprintf (LOG_NOTQUIET, _("%s: Invalid URL %s: %s\n"),
file, url_text, url_error (up_error_code));
xfree (url_text);
continue;

View File

@ -1365,8 +1365,8 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
post_data_size = file_size (opt.post_file_name);
if (post_data_size == -1)
{
logprintf (LOG_NOTQUIET, "POST data file missing: %s\n",
opt.post_file_name);
logprintf (LOG_NOTQUIET, _("POST data file missing: %s (%s)\n"),
opt.post_file_name, strerror (errno));
post_data_size = 0;
}
}
@ -2040,7 +2040,7 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer,
/* If opt.noclobber is turned on and file already exists, do not
retrieve the file */
logprintf (LOG_VERBOSE, _("\
File `%s' already there, will not retrieve.\n"), *hstat.local_file);
File `%s' already there; not retrieving.\n\n"), *hstat.local_file);
/* If the file is there, we suppose it's retrieved OK. */
*dt |= RETROKF;
@ -2440,7 +2440,7 @@ The sizes do not match (local %s) -- retrieving.\n"),
else if (!opt.kill_longer) /* meaning we got more than expected */
{
logprintf (LOG_VERBOSE,
_("%s (%s) - `%s' saved [%s/%s])\n\n"),
_("%s (%s) - `%s' saved [%s/%s]\n\n"),
tms, tmrate, locf,
number_to_static_string (hstat.len),
number_to_static_string (hstat.contlen));

View File

@ -391,7 +391,7 @@ res_parse_from_file (const char *filename)
struct file_memory *fm = read_file (filename);
if (!fm)
{
logprintf (LOG_NOTQUIET, "Cannot open %s: %s",
logprintf (LOG_NOTQUIET, _("Cannot open %s: %s"),
filename, strerror (errno));
return NULL;
}