From: Pedro Ribeiro
Date: Fri, 3 Oct 2008 07:17:07 +0000 (+0200)
Subject: logger: several strings without gettext calls
X-Git-Tag: v2.15-rc1~371
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=331b7044810c192877134ce7ee487ecce299777a;p=thirdparty%2Futil-linux.git
logger: several strings without gettext calls
Signed-off-by: Pedro Ribeiro
Signed-off-by: Karel Zak
---
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 9a7cb05881..72a8f85e8e 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -64,7 +64,7 @@ myopenlog(const char *sock) {
static struct sockaddr_un s_addr; /* AF_UNIX address of local logger */
if (strlen(sock) >= sizeof(s_addr.sun_path)) {
- printf ("logger: openlog: pathname too long\n");
+ printf (_("logger: openlog: pathname too long\n"));
exit(1);
}
@@ -72,12 +72,12 @@ myopenlog(const char *sock) {
(void)strcpy(s_addr.sun_path, sock);
if ((fd = socket(AF_UNIX, optd ? SOCK_DGRAM : SOCK_STREAM, 0)) == -1) {
- printf ("socket: %s.\n", strerror(errno));
+ printf (_("socket: %s.\n"), strerror(errno));
exit (1);
}
if (connect(fd, (struct sockaddr *) &s_addr, sizeof(s_addr)) == -1) {
- printf ("connect: %s.\n", strerror(errno));
+ printf (_("connect: %s.\n"), strerror(errno));
exit (1);
}
return fd;