Util-Linux package development
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: util-linux@vger.kernel.org
Subject: [PATCH 1/2] cfdisk: don't mess up the help screen by printing the PO file header
Date: Sun, 18 Jan 2015 17:21:24 +0100	[thread overview]
Message-ID: <1421598085-4394-1-git-send-email-bensberg@justemail.net> (raw)

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 |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index 1d4e2d5..b461b21 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -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.")
 	};
 
-- 
1.7.0.4


             reply	other threads:[~2015-01-18 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 16:21 Benno Schulenberg [this message]
2015-01-18 16:21 ` [PATCH 2/2] cfdisk: shorten the help screen to make it fit within 25 lines Benno Schulenberg
2015-01-26 10:55 ` [PATCH 1/2] cfdisk: don't mess up the help screen by printing the PO file header Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421598085-4394-1-git-send-email-bensberg@justemail.net \
    --to=bensberg@justemail.net \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox