Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
authorroland <roland>
Sun, 26 Nov 1995 17:35:48 +0000 (17:35 +0000)
committerroland <roland>
Sun, 26 Nov 1995 17:35:48 +0000 (17:35 +0000)
* assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
strings.

ChangeLog
assert/assert-perr.c
assert/assert.c
inet/rcmd.c

index 2ae4f58..2d3606f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
+
+       * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
+       malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
+       resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
+       sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
+       sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
+       sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
+       sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
+       sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
+       strings.
+
 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
 
        * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
index b0436ad..f9aeb89 100644 (file)
@@ -43,7 +43,7 @@ __assert_perror_fail (int errnum,
 #endif
 
   /* Print the message.  */
-  (void) fprintf (stderr, "%s%s%s:%u: %s%sUnexpected error: %s.\n",
+  (void) fprintf (stderr, _("%s%s%s:%u: %s%sUnexpected error: %s.\n"),
                  __assert_program_name ? __assert_program_name : "",
                  __assert_program_name ? ": " : "",
                  file, line,
index 9da9e22..0160b40 100644 (file)
@@ -38,14 +38,14 @@ CONST char *__assert_program_name;
 void
 DEFUN(__assert_fail, (assertion, file, line, function),
       CONST char *assertion AND
-      CONST char *file AND unsigned int line AND CONST char *function)      
+      CONST char *file AND unsigned int line AND CONST char *function)
 {
 #ifdef FATAL_PREPARE
   FATAL_PREPARE;
 #endif
 
   /* Print the message.  */
-  (void) fprintf (stderr, "%s%s%s:%u: %s%sAssertion `%s' failed.\n",
+  (void) fprintf (stderr, _("%s%s%s:%u: %s%sAssertion `%s' failed.\n"),
                  __assert_program_name ? __assert_program_name : "",
                  __assert_program_name ? ": " : "",
                  file, line,
index e5b28c6..ae6e0b6 100644 (file)
@@ -83,7 +83,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
                if (s < 0) {
                        if (errno == EAGAIN)
                                (void)fprintf(stderr,
-                                   "rcmd: socket: All ports in use\n");
+                                   _("rcmd: socket: All ports in use\n"));
                        else
                                (void)fprintf(stderr, "rcmd: socket: %s\n",
                                    strerror(errno));
@@ -109,13 +109,13 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
                if (hp->h_addr_list[1] != NULL) {
                        int oerrno = errno;
 
-                       (void)fprintf(stderr, "connect to address %s: ",
+                       (void)fprintf(stderr, _("connect to address %s: "),
                            inet_ntoa(sin.sin_addr));
                        errno = oerrno;
                        perror(0);
                        hp->h_addr_list++;
                        bcopy(hp->h_addr_list[0], &sin.sin_addr, hp->h_length);
-                       (void)fprintf(stderr, "Trying %s...\n",
+                       (void)fprintf(stderr, _("Trying %s...\n"),
                            inet_ntoa(sin.sin_addr));
                        continue;
                }
@@ -138,7 +138,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
                (void)snprintf(num, sizeof(num), "%d", lport);
                if (write(s, num, strlen(num)+1) != strlen(num)+1) {
                        (void)fprintf(stderr,
-                           "rcmd: write (setting up stderr): %s\n",
+                           _("rcmd: write (setting up stderr): %s\n"),
                            strerror(errno));
                        (void)close(s2);
                        goto bad;
@@ -151,11 +151,11 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
                    !FD_ISSET(s2, &reads)) {
                        if (errno != 0)
                                (void)fprintf(stderr,
-                                   "rcmd: select (setting up stderr): %s\n",
-                                   strerror(errno));
+                                  _("rcmd: select (setting up stderr): %s\n"),
+                                  strerror(errno));
                        else
                                (void)fprintf(stderr,
-                               "select: protocol failure in circuit setup\n");
+                            _("select: protocol failure in circuit setup\n"));
                        (void)close(s2);
                        goto bad;
                }
@@ -173,7 +173,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
                    from.sin_port >= IPPORT_RESERVED ||
                    from.sin_port < IPPORT_RESERVED / 2) {
                        (void)fprintf(stderr,
-                           "socket: protocol failure in circuit setup.\n");
+                           _("socket: protocol failure in circuit setup.\n"));
                        goto bad2;
                }
        }
@@ -318,15 +318,15 @@ again:
                 */
                cp = NULL;
                if (lstat(pbuf, &sbuf) < 0)
-                       cp = ".rhosts lstat failed";
+                       cp = _(".rhosts lstat failed");
                else if (!S_ISREG(sbuf.st_mode))
-                       cp = ".rhosts not regular file";
+                       cp = _(".rhosts not regular file");
                else if (fstat(fileno(hostf), &sbuf) < 0)
-                       cp = ".rhosts fstat failed";
+                       cp = _(".rhosts fstat failed");
                else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid)
-                       cp = "bad .rhosts owner";
+                       cp = _("bad .rhosts owner");
                else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))
-                       cp = ".rhosts writeable by other than owner";
+                       cp = _(".rhosts writeable by other than owner");
                /* If there were any problems, quit. */
                if (cp) {
                        __rcmd_errstr = cp;