]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: don't mess up the help screen by printing the PO file header
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 18 Jan 2015 16:21:24 +0000 (17:21 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Jan 2015 10:53:48 +0000 (11:53 +0100)
Asking for the translation of the empty string ("") produces the header
of the PO file corresponding to the current locale, which messes up the
help screen.  So, don't use empty strings in the array of help strings
but (arbitrary) double spaces.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/cfdisk.c

index 509fbbd635b3da4229449fbc1914063e8eabc6d9..8fc9c24e554f315b7ab843b5e613b27ab1669bb2 100644 (file)
@@ -1798,14 +1798,14 @@ static int ui_help(void)
        size_t i;
        static const char *help[] = {
                N_("Help Screen for cfdisk"),
-               "",
+               "  ",
                N_("This is cfdisk, a curses based disk partitioning program, which"),
                N_("allows you to create, delete and modify partitions on your hard"),
                N_("disk drive."),
-               "",
+               "  ",
                N_("Copyright (C) 2014 Karel Zak <kzak@redhat.com> "),
                N_("Based on the original cfdisk from Kevin E. Martin & aeb."),
-               "",
+               "  ",
                N_("Command      Meaning"),
                N_("-------      -------"),
                N_("  b          Toggle bootable flag of the current partition"),
@@ -1824,11 +1824,10 @@ static int ui_help(void)
                N_("Down Arrow   Move cursor to the next partition"),
                N_("Left Arrow   Move cursor to the previous menu item"),
                N_("Right Arrow  Move cursor to the next menu item"),
-
-               "",
+               "  ",
                N_("Note: All of the commands can be entered with either upper or lower"),
                N_("case letters (except for Writes)."),
-               "",
+               "  ",
                N_("Use lsblk(8) or partx(8) to see more details about the device.")
        };