summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorBenno Schulenberg2015-02-01 15:00:08 +0100
committerKarel Zak2015-02-02 10:57:07 +0100
commitd4640320dff75cc1bdbc1910cf4e3b66b8623aa2 (patch)
tree8ac8664a79aa126f56e42a21c106b698639b4b17 /disk-utils/cfdisk.c
parentcfdisk: improve wording and consistency of the size warnings (diff)
downloadkernel-qcow2-util-linux-d4640320dff75cc1bdbc1910cf4e3b66b8623aa2.tar.gz
kernel-qcow2-util-linux-d4640320dff75cc1bdbc1910cf4e3b66b8623aa2.tar.xz
kernel-qcow2-util-linux-d4640320dff75cc1bdbc1910cf4e3b66b8623aa2.zip
cfdisk: punctuate the bottombar messages consistently
Also adjust the style of two comments and add another. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index f414f55e8..eb3141b61 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -1923,7 +1923,7 @@ static int main_menu_action(struct cfdisk *cf, int key)
info = _("Partition %zu has been deleted.");
ref = 1;
break;
- case 'h': /* help */
+ case 'h': /* Help */
ui_help();
ref = 1;
break;
@@ -1989,13 +1989,13 @@ static int main_menu_action(struct cfdisk *cf, int key)
info = _("The type of partition %zu is unchanged.");
break;
}
- case 's': /* fix order */
+ case 's': /* Sort */
if (cf->wrong_order) {
fdisk_reorder_partitions(cf->cxt);
ref = 1;
}
break;
- case 'u':
+ case 'u': /* dUmp */
ui_script_write(cf);
break;
case 'W': /* Write */
@@ -2003,7 +2003,7 @@ static int main_menu_action(struct cfdisk *cf, int key)
char buf[64] = { 0 };
if (fdisk_is_readonly(cf->cxt)) {
- warn = _("Device open in read-only mode");
+ warn = _("Device is open in read-only mode.");
break;
}
@@ -2016,12 +2016,12 @@ static int main_menu_action(struct cfdisk *cf, int key)
ref = 1;
if (rc <= 0 || (strcasecmp(buf, "yes") != 0 &&
strcasecmp(buf, _("yes")) != 0)) {
- info = _("Did not write partition table to disk");
+ info = _("Did not write partition table to disk.");
break;
}
rc = fdisk_write_disklabel(cf->cxt);
if (rc)
- warn = _("Failed to write disklabel");
+ warn = _("Failed to write disklabel.");
else {
fdisk_reread_partition_table(cf->cxt);
info = _("The partition table has been altered.");