While doing so, also improve translatability and some wordings.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
/* Have at least 4 partitions been defined? */
if (partno < 4) {
if (!partno)
- errx(EXIT_FAILURE, _("no partition table present."));
+ errx(EXIT_FAILURE, _("no partition table present"));
else
- errx(EXIT_FAILURE, P_("strange, only %d partition defined.",
- "strange, only %d partitions defined.", partno), partno);
+ errx(EXIT_FAILURE, P_("strange, only %d partition defined",
+ "strange, only %d partitions defined", partno), partno);
return 0;
}
else if (status[e] != c) {
size_t ct = 0;
- fprintf(stderr, _("%s: options "),
+ fprintf(stderr, _("%s: these options are"
+ "mutually exclusive:"),
program_invocation_short_name);
for (op = excl[e];
op++, ct++) {
const char *n = option_to_longopt(*op, opts);
if (n)
- fprintf(stderr, "--%s ", n);
+ fprintf(stderr, " --%s", n);
else
- fprintf(stderr, "-%c ", *op);
+ fprintf(stderr, " -%c", *op);
}
- fprintf(stderr, _("are mutually exclusive."));
fputc('\n', stderr);
exit(OPTUTILS_EXIT_CODE);
}
{
if (idx >= arysz)
errx(EXIT_FAILURE, _("too many columns specified, "
- "the limit is %zu columns."),
+ "the limit is %zu columns"),
arysz - 1);
return idx;
}
}
if (geteuid() != 0)
- errx(EXIT_FAILURE, _("only root can run this program."));
+ errx(EXIT_FAILURE, _("only superuser can run this program"));
mask_signal(SIGQUIT, SIG_IGN, &saved_sigquit);
mask_signal(SIGTSTP, SIG_IGN, &saved_sigtstp);
* Get the root password.
*/
if ((pwd = getrootpwent(opt_e)) == NULL) {
- warnx(_("cannot open password database."));
+ warnx(_("cannot open password database"));
sleep(2);
return EXIT_FAILURE;
}
{
if (idx >= arysz)
errx(EXIT_FAILURE, _("too many columns specified, "
- "the limit is %zu columns."),
+ "the limit is %zu columns"),
arysz - 1);
return idx;
}
if (ctl->syslogfp == syslog_rfc5424 || ctl->syslogfp == syslog_rfc3164)
errx(EXIT_FAILURE, _("--server or --socket are required to "
- "log by --rfc5424 or --rfc3164."));
+ "log by --rfc5424 or --rfc3164"));
openlog(ctl->tag ? ctl->tag : xgetlogin(), ctl->logflags, 0);
ctl->syslogfp = syslog_local;
{
if (idx >= arysz)
errx(EXIT_FAILURE, _("too many columns specified, "
- "the limit is %zu columns."),
+ "the limit is %zu columns"),
arysz - 1);
return idx;
}
excludes[nexcludes++] = 1; /* default: ignore RAM disks */
if (lsblk->sort_id >= 0 && column_id_to_number(lsblk->sort_id) < 0)
- errx(EXIT_FAILURE, _("the sort column has to be between output columns."));
+ errx(EXIT_FAILURE, _("the sort column has to be among the output columns"));
mnt_init_debug(0);
scols_init_debug(0);
}
if (optind == argc)
- errx(EXIT_FAILURE, _("no filename specified."));
+ errx(EXIT_FAILURE, _("no filename specified"));
filename = argv[optind++];
else {
rc = fstrim_filesystem(path, &range, verbose);
if (rc == 1) {
- warnx(_("%s: discard operation not supported."), path);
+ warnx(_("%s: the discard operation is not supported"), path);
rc = EXIT_FAILURE;
}
}
AGETTY_RELOAD_FILENAME);
#else
/* very unusual */
- errx(EXIT_FAILURE, _("--reload unssupported on your system."));
+ errx(EXIT_FAILURE, _("--reload is unsupported on your system"));
#endif
}
argv += parse_args(argc, argv, hex);
} else
errx(EXIT_FAILURE, _("calling hexdump as od has been deprecated "
- "in favour to GNU coreutils od."));
+ "in favor of GNU coreutils od"));
/* figure out the data block size */
hex->blocksize = 0;