libfdisk: (dos) make a helpful message fit within 80 characters

Also add a hint for translators.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
This commit is contained in:
Benno Schulenberg 2015-02-02 21:44:34 +01:00 committed by Karel Zak
parent 68fe4b2822
commit 33b981f757
1 changed files with 3 additions and 5 deletions

View File

@ -1593,11 +1593,9 @@ static int dos_add_partition(struct fdisk_context *cxt,
}
rc = add_logical(cxt, pa, &res);
} else {
fdisk_info(cxt,
_( "Impossible to create another primary partition. "
"If you want to create more partitions, you must "
"replace a primary partition with an extended "
"partition first."));
/* TRANSLATORS: Try to keep this within 80 characters. */
fdisk_info(cxt, _("To create more partitions, first replace "
"a primary with an extended partition."));
return -EINVAL;
}
} else if (cxt->label->nparts_max >= MAXIMUM_PARTS) {