]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Damir Dzeko <ddzeko@zesoi.fer.hr> did not document his new --referer option.
[wget] / src / main.c
index cb724787615ea5e9da92636992d6f4be074dd3c7..548027b5276b507bad495c23557f3f62e7be7596 100644 (file)
@@ -87,7 +87,11 @@ i18n_initialize (void)
      things up.  For example, when in a foreign locale, Solaris
      strptime() fails to handle international dates correctly, which
      makes http_atotm() malfunction.  */
+#ifdef LC_MESSAGES
   setlocale (LC_MESSAGES, "");
+#else
+  setlocale (LC_ALL, "");
+#endif
   /* Set the text message domain.  */
   bindtextdomain ("wget", LOCALEDIR);
   textdomain ("wget");
@@ -119,7 +123,7 @@ Startup:\n\
   -V,  --version           display the version of Wget and exit.\n\
   -h,  --help              print this help.\n\
   -b,  --background        go to background after startup.\n\
-  -e,  --execute=COMMAND   execute a `.wgetrc\' command.\n\
+  -e,  --execute=COMMAND   execute a `.wgetrc\'-style command.\n\
 \n"), _("\
 Logging and input file:\n\
   -o,  --output-file=FILE     log messages to FILE.\n\
@@ -161,6 +165,7 @@ HTTP options:\n\
        --header=STRING       insert STRING among the headers.\n\
        --proxy-user=USER     set USER as proxy username.\n\
        --proxy-passwd=PASS   set PASS as proxy password.\n\
+       --referer=URL         include `Referer: URL\' header in HTTP request.\n\
   -s,  --save-headers        save the HTTP headers to file.\n\
   -U,  --user-agent=AGENT    identify as AGENT instead of Wget/VERSION.\n\
 \n"), _("\
@@ -273,10 +278,10 @@ main (int argc, char *const *argv)
     { "timeout", required_argument, NULL, 'T' },
     { "tries", required_argument, NULL, 't' },
     { "user-agent", required_argument, NULL, 'U' },
-    { "referer", required_argument, NULL, 129 }, /* undocumented */
+    { "referer", required_argument, NULL, 129 },
     { "use-proxy", required_argument, NULL, 'Y' },
     { "wait", required_argument, NULL, 'w' },
-    { "waitretry", required_argument, NULL, 24 }, /* partially undocumented */
+    { "waitretry", required_argument, NULL, 24 },
     { 0, 0, 0, 0 }
   };
 
@@ -413,7 +418,7 @@ This program is distributed in the hope that it will be useful,\n\
 but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
 GNU General Public License for more details.\n"));
-         printf (_("\nWritten by Hrvoje Niksic <hniksic@srce.hr>.\n"));
+         printf (_("\nOriginally written by Hrvoje Niksic <hniksic@iskon.hr>.\n"));
          exit (0);
          break;
        case 'v':