-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Package: util-linux Version: 2.14~rc2-0 Severity: minor Tags: patch l10n While translating util-linux, i've found several strings without gettext calls, in the mount module. Patch included. Forwarded to upstream. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjZbq4ACgkQQ1WdpTsIkf6dCACdEYVOU2gJizYKZKNC22JQ/pnH t8IAn1jwB79YwCjBSo+FIDIxLXHjkhV9 =qlcb -----END PGP SIGNATURE-----
diff --git a/mount/fstab.c b/mount/fstab.c index 895fd2c..d91b4f1 100644 --- a/mount/fstab.c +++ b/mount/fstab.c @@ -937,7 +937,7 @@ main(int argc, char **argv) if (argc < 3) die(EXIT_FAILURE, - "usage: %s <id> <synctime> <file> <nloops>\n", + _("usage: %s <id> <synctime> <file> <nloops>\n"), progname); id = atoi(argv[1]); @@ -966,13 +966,13 @@ main(int argc, char **argv) if (!(f = fopen(filename, "r"))) { unlock_mtab(); - die(EXIT_FAILURE, "ERROR: %d (pid=%d, loop=%d): " - "open for read failed\n", id, pid, i); + die(EXIT_FAILURE, _("ERROR: %d (pid=%d, loop=%d): " + "open for read failed\n"), id, pid, i); } if (!fgets(buf, sizeof(buf), f)) { unlock_mtab(); - die(EXIT_FAILURE, "ERROR: %d (pid=%d, loop=%d): " - "read failed\n", id, pid, i); + die(EXIT_FAILURE, _("ERROR: %d (pid=%d, loop=%d): " + "read failed\n"), id, pid, i); } fclose(f); @@ -980,8 +980,8 @@ main(int argc, char **argv) if (!(f = fopen(filename, "w"))) { unlock_mtab(); - die(EXIT_FAILURE, "ERROR: %d (pid=%d, loop=%d): " - "open for write failed\n", id, pid, i); + die(EXIT_FAILURE, _("ERROR: %d (pid=%d, loop=%d): " + "open for write failed\n"), id, pid, i); } fprintf(f, "%ld", num); fclose(f); @@ -1003,7 +1003,7 @@ main(int argc, char **argv) usleep(50000); } - fprintf(stderr, "%05d (pid=%05d): DONE\n", id, pid); + fprintf(stderr, _("%05d (pid=%05d): DONE\n"), id, pid); exit(EXIT_SUCCESS); } diff --git a/mount/lomount.c b/mount/lomount.c index 6ef143a..b70f94b 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -620,7 +620,7 @@ xgetpass(int pfd, const char *prompt) { pass = realloc(tmppass, buflen); if (pass == NULL) { /* realloc failed. Stop reading. */ - error("Out of memory while reading passphrase"); + error(_("Out of memory while reading passphrase")); pass = tmppass; /* the old buffer hasn't changed */ break; } @@ -995,7 +995,7 @@ main(int argc, char **argv) { return -1; if (argc == optind) { if (verbose) - printf("Loop device is %s\n", device); + printf(_("Loop device is %s\n"), device); printf("%s\n", device); return 0; } @@ -1019,7 +1019,7 @@ main(int argc, char **argv) { res = set_loop(device, file, off, slimit, encryption, pfd, &ro); if (res == 2 && find) { if (verbose) - printf("stolen loop=%s...trying again\n", + printf(_("stolen loop=%s...trying again\n"), device); free(device); if (!(device = find_unused_loop_device())) @@ -1028,7 +1028,7 @@ main(int argc, char **argv) { } while (find && res == 2); if (verbose && res == 0) - printf("Loop device is %s\n", device); + printf(_("Loop device is %s\n"), device); if (res == 0 && showdev && find) printf("%s\n", device);