]> err.no Git - util-linux/commitdiff
messages: gettextize a few skipped or forgotten ones
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 10 Jun 2010 12:29:27 +0000 (14:29 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Jun 2010 09:19:19 +0000 (11:19 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/blockdev.c
disk-utils/mkfs.minix.c
misc-utils/uuidd.c
mount/swapon.c
sys-utils/lscpu.c
sys-utils/tunelp.c

index eeaf2f5c674c4ea3b9d6026a6da8ac3356861573..cf594d12e3bbeec2e765668cbe395680fbc0022e 100644 (file)
@@ -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);
        }
 
index c52afbd77df0d0b19221ab92d90375241a4c0423..5f01f2ba38fe8e6a653409bd1dea161d3d9dae05 100644 (file)
@@ -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);
index a6d2f696a0fdcf63fac82636d1e128ca717ceb43..716a5824a16b6e95336423ec26866db74cb11fa7 100644 (file)
@@ -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:
index 4ee3c2f75006414f3b3598da573cd2f82d3ce8fa..c7006550ea5ce9ab633a178157552d794054a1f4 100644 (file)
@@ -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);
index 780f1d6243f6acf808027f0f112a75dd5f238e0b..72d1054b9223b332849f1a1c69506ef959f04259 100644 (file)
@@ -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;
index 619cf422e0e10a66947b6a181b01f0cfa5c02002..00ad5b765981300e124ab40ce0d1e67d541a71c4 100644 (file)
@@ -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;