From: Benno Schulenberg Date: Wed, 16 Mar 2016 08:55:49 +0000 (+0100) Subject: fdisk, cfdisk, sfdisk: improve the grammar of three messages X-Git-Tag: v2.28-rc2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb19f5479b899139c8f2c0e98549bbeb9960b7cf;p=thirdparty%2Futil-linux.git fdisk, cfdisk, sfdisk: improve the grammar of three messages Signed-off-by: Benno Schulenberg --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 010a196985..3908e31367 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -2436,7 +2436,7 @@ static int ui_run(struct cfdisk *cf) DBG(UI, ul_debug("start cols=%zu, lines=%zu", ui_cols, ui_lines)); if (fdisk_get_collision(cf->cxt)) { - ui_warnx(_("Device already contains %s signature, it will be removed by write command."), + ui_warnx(_("Device already contains a %s signature; it will be removed by a write command."), fdisk_get_collision(cf->cxt)); fdisk_enable_wipe(cf->cxt, 1); ui_hint(_("Press a key to continue.")); diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 3f8769d95c..c941e5b969 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -974,7 +974,7 @@ int main(int argc, char **argv) if (fdisk_get_collision(cxt)) { int dowipe = wipemode == WIPEMODE_ALWAYS ? 1 : 0; - fdisk_warnx(cxt, _("%s: device already contains %s signature."), + fdisk_warnx(cxt, _("Device %s already contains a %s signature."), argv[optind], fdisk_get_collision(cxt)); if (isatty(STDIN_FILENO) && wipemode == WIPEMODE_AUTO) @@ -983,7 +983,7 @@ int main(int argc, char **argv) fdisk_enable_wipe(cxt, dowipe); if (dowipe) fdisk_warnx(cxt, _( - "The signature will be removed by write command.")); + "The signature will be removed by a write command.")); else fdisk_warnx(cxt, _( "It is strongly recommended to wipe the device with " diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index f1ddd9cb84..15fa99c47d 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1537,7 +1537,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) if (fdisk_get_collision(sf->cxt)) { int dowipe = sf->wipemode == WIPEMODE_ALWAYS ? 1 : 0; - fdisk_warnx(sf->cxt, _("%s: device already contains %s signature."), + fdisk_warnx(sf->cxt, _("Device %s already contains a %s signature."), devname, fdisk_get_collision(sf->cxt)); if (sf->interactive && sf->wipemode == WIPEMODE_AUTO) @@ -1546,7 +1546,7 @@ static int command_fdisk(struct sfdisk *sf, int argc, char **argv) fdisk_enable_wipe(sf->cxt, dowipe); if (dowipe) fdisk_warnx(sf->cxt, _( - "The signature will be removed by write command.")); + "The signature will be removed by a write command.")); else fdisk_warnx(sf->cxt, _( "It is strongly recommended to wipe the device with "