From: Benno Schulenberg Date: Thu, 10 Jun 2010 12:29:27 +0000 (+0200) Subject: messages: gettextize a few skipped or forgotten ones X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b0611b4622d70569705dd6eef68002a5a1298c;p=util-linux messages: gettextize a few skipped or forgotten ones Signed-off-by: Benno Schulenberg --- diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index eeaf2f5c..cf594d12 100644 --- a/disk-utils/blockdev.c +++ b/disk-utils/blockdev.c @@ -177,7 +177,7 @@ usage(void) { int i; fputc('\n', stderr); fprintf(stderr, _("Usage:\n")); - fprintf(stderr, " %s -V\n", progname); + fprintf(stderr, _(" %s -V\n"), progname); fprintf(stderr, _(" %s --report [devices]\n"), progname); fprintf(stderr, _(" %s [-v|-q] commands devices\n"), progname); fputc('\n', stderr); @@ -235,7 +235,7 @@ main(int argc, char **argv) { /* -V not together with commands */ if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) { - printf("%s (%s)\n", progname, PACKAGE_STRING); + printf(_("%s (%s)\n"), progname, PACKAGE_STRING); exit(0); } diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index c52afbd7..5f01f2ba 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -149,7 +149,7 @@ die(char *str) { static void usage(void) { - fprintf(stderr, "%s (%s)\n", program_name, PACKAGE_STRING); + fprintf(stderr, _("%s (%s)\n"), program_name, PACKAGE_STRING); fprintf(stderr, _("Usage: %s [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"), program_name); diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index a6d2f696..716a5824 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -241,7 +241,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, fd_pidfile = open(pidfile_path, O_CREAT | O_RDWR, 0664); if (fd_pidfile < 0) { if (!quiet) - fprintf(stderr, "Failed to open/create %s: %s\n", + fprintf(stderr, _("Failed to open/create %s: %s\n"), pidfile_path, strerror(errno)); exit(1); } @@ -258,7 +258,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, if ((errno == EAGAIN) || (errno == EINTR)) continue; if (!quiet) - fprintf(stderr, "Failed to lock %s: %s\n", + fprintf(stderr, _("Failed to lock %s: %s\n"), pidfile_path, strerror(errno)); exit(1); } @@ -359,7 +359,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, printf(_("operation %d, incoming num = %d\n"), op, num); } else if (debug) - printf("operation %d\n", op); + printf(_("operation %d\n"), op); switch(op) { case UUIDD_OP_GETPID: diff --git a/mount/swapon.c b/mount/swapon.c index 4ee3c2f7..c7006550 100644 --- a/mount/swapon.c +++ b/mount/swapon.c @@ -425,7 +425,7 @@ swapon_checks(const char *special) unsigned long long swapsize = swap_get_size(hdr, special, pagesize); if (verbose) - warnx("%s: pagesize=%d, swapsize=%llu, devsize=%llu", + warnx(_("%s: pagesize=%d, swapsize=%llu, devsize=%llu"), special, pagesize, swapsize, devsize); if (swapsize > devsize) { @@ -663,7 +663,7 @@ main_swapon(int argc, char *argv[]) { ++verbose; break; case 'V': /* version */ - printf("%s: (%s)\n", progname, PACKAGE_STRING); + printf(_("%s (%s)\n"), progname, PACKAGE_STRING); exit(0); case 0: break; @@ -715,7 +715,7 @@ main_swapoff(int argc, char *argv[]) { ++verbose; break; case 'V': /* version */ - printf("%s (%s)\n", progname, PACKAGE_STRING); + printf(_("%s (%s)\n"), progname, PACKAGE_STRING); exit(0); case 'L': addl(optarg); diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 780f1d62..72d1054b 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -735,7 +735,7 @@ print_readable(struct lscpu_desc *desc) char buf[512]; int i; - print_s("Architecture:", desc->arch); + print_s(_("Architecture:"), desc->arch); if (desc->mode & (MODE_REAL | MODE_TRANSPARENT | MODE_LONG)) { char buf[64], *p = buf; diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 619cf422..00ad5b76 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -81,7 +81,7 @@ print_usage(char *progname) { static void print_version(char *progname) { - printf("%s (%s)\n", progname, PACKAGE_STRING); + printf(_("%s (%s)\n"), progname, PACKAGE_STRING); } static void * @@ -256,7 +256,7 @@ main (int argc, char ** argv) { status = 0xdeadbeef; retval = ioctl(fd, LPGETSTATUS - offset, &status); if (retval < 0) - perror("LPGETSTATUS error"); + perror(_("LPGETSTATUS error")); else { if (status == 0xdeadbeef) /* a few 1.1.7x kernels will do this */ status = retval; @@ -271,7 +271,7 @@ main (int argc, char ** argv) { } else #endif /* LPGETSTATUS */ if (ioctl(fd, cmds->op - offset, cmds->val) < 0) { - perror("tunelp: ioctl"); + perror(_("tunelp: ioctl failed")); } cmdst = cmds; cmds = cmds->next;