]> sjero.net Git - wget/commitdiff
[svn] Gettext-ize previously missed messages.
authorhniksic <devnull@localhost>
Wed, 15 Jun 2005 20:26:37 +0000 (13:26 -0700)
committerhniksic <devnull@localhost>
Wed, 15 Jun 2005 20:26:37 +0000 (13:26 -0700)
By Benno Schulenberg.

src/ChangeLog
src/connect.c
src/cookies.c
src/ftp.c
src/html-url.c
src/http.c
src/res.c

index aff944577fb18e6d7c97dacd36ba1ea6ab2c3320..989106ddd0476c7cadea33d5215c05ae4f9ae5ea 100644 (file)
@@ -1,6 +1,12 @@
 2005-06-15  Hrvoje Niksic  <hniksic@xemacs.org>
 
 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>
 
 
 2005-06-15  Hrvoje Niksic  <hniksic@xemacs.org>
 
index d6626f9332d47f5cd4f394e62f46dc9305006ebb..24dd1faae943341ae3534042585798a8e2c9bc1c 100644 (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)
     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;
   }
     errno = save_errno;
     return -1;
   }
index 929ab17b2e95496d7c8e86fa35a65f009328332e..fad20e7e9fc32287c2e2afb081a137a0e1b873bd 100644 (file)
@@ -862,7 +862,7 @@ cookie_handle_set_cookie (struct cookie_jar *jar,
       if (!check_domain_match (cookie->domain, host))
        {
          logprintf (LOG_NOTQUIET,
       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;
                     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)
     {
   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;
     }
                 file, strerror (errno));
       return;
     }
index 9609f90c954c4b050cb988b0c00c7a844b4285aa..31ac37ae22a669b0da1802662f31ea5cf2f69280 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -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,
   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;
     }
       /* If the file is there, we suppose it's retrieved OK.  */
       return RETROK;
     }
index fcf1e812e9ce97450ea128fd4423b4c5c2424529..853226d939da7c981b61bb6b86f7c6b1afe564c4 100644 (file)
@@ -702,7 +702,7 @@ get_urls_file (const char *file)
       url = url_parse (url_text, &up_error_code);
       if (!url)
        {
       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;
                     file, url_text, url_error (up_error_code));
          xfree (url_text);
          continue;
index 30e4dda9683d2fe820cc565873c00dae0d268c28..3170d77e56228c6567b4c7c86ce22a975a64b0f6 100644 (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)
            {
          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;
            }
        }
              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, _("\
       /* 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;
 
       /* 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,
          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));
                         tms, tmrate, locf,
                         number_to_static_string (hstat.len),
                         number_to_static_string (hstat.contlen));
index 0be8e7cf0937a8eb8cc98760db083ccdeab2053a..48d6fa2ec182f7d3eec0312e41385cfeef7c0e5c 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -391,7 +391,7 @@ res_parse_from_file (const char *filename)
   struct file_memory *fm = read_file (filename);
   if (!fm)
     {
   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;
     }
                 filename, strerror (errno));
       return NULL;
     }