dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0033-Message-string-cleanups.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: William Jon McCann <william.jon.mccann@gmail.com>
d9d99f
Date: Fri, 7 Jun 2013 11:09:04 -0400
d9d99f
Subject: [PATCH] Message string cleanups
d9d99f
d9d99f
Make use of terminology consistent. Remove jargon.
d9d99f
---
d9d99f
 grub-core/normal/menu_text.c | 21 +++++++++------------
d9d99f
 1 file changed, 9 insertions(+), 12 deletions(-)
d9d99f
d9d99f
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
d9d99f
index a3d1f23f68f..64a83862f66 100644
d9d99f
--- a/grub-core/normal/menu_text.c
d9d99f
+++ b/grub-core/normal/menu_text.c
d9d99f
@@ -157,9 +157,8 @@ print_message (int nested, int edit, struct grub_term_output *term, int dry_run)
d9d99f
 
d9d99f
   if (edit)
d9d99f
     {
d9d99f
-      ret += grub_print_message_indented_real (_("Minimum Emacs-like screen editing is \
d9d99f
-supported. TAB lists completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a \
d9d99f
-command-line or ESC to discard edits and return to the GRUB menu."),
d9d99f
+      ret += grub_print_message_indented_real (_("Press Ctrl-x or F10 to start, Ctrl-c or F2 for a \
d9d99f
+command prompt or Escape to discard edits and return to the menu. Pressing Tab lists possible completions."),
d9d99f
 					       STANDARD_MARGIN, STANDARD_MARGIN,
d9d99f
 					       term, dry_run);
d9d99f
     }
d9d99f
@@ -167,8 +166,8 @@ command-line or ESC to discard edits and return to the GRUB menu."),
d9d99f
     {
d9d99f
       char *msg_translated;
d9d99f
 
d9d99f
-      msg_translated = grub_xasprintf (_("Use the %C and %C keys to select which "
d9d99f
-					 "entry is highlighted."),
d9d99f
+      msg_translated = grub_xasprintf (_("Use the %C and %C keys to change the "
d9d99f
+					 "selection."),
d9d99f
 				       GRUB_UNICODE_UPARROW,
d9d99f
 				       GRUB_UNICODE_DOWNARROW);
d9d99f
       if (!msg_translated)
d9d99f
@@ -181,17 +180,15 @@ command-line or ESC to discard edits and return to the GRUB menu."),
d9d99f
       if (nested)
d9d99f
 	{
d9d99f
 	  ret += grub_print_message_indented_real
d9d99f
-	    (_("Press enter to boot the selected OS, "
d9d99f
-	       "`e' to edit the commands before booting "
d9d99f
-	       "or `c' for a command-line. ESC to return previous menu."),
d9d99f
+	    (_("Press 'e' to edit the selected item, "
d9d99f
+	       "or 'c' for a command prompt. Press Escape to return to the previous menu."),
d9d99f
 	     STANDARD_MARGIN, STANDARD_MARGIN, term, dry_run);
d9d99f
 	}
d9d99f
       else
d9d99f
 	{
d9d99f
 	  ret += grub_print_message_indented_real
d9d99f
-	    (_("Press enter to boot the selected OS, "
d9d99f
-	       "`e' to edit the commands before booting "
d9d99f
-	       "or `c' for a command-line."),
d9d99f
+	    (_("Press 'e' to edit the selected item, "
d9d99f
+	       "or 'c' for a command prompt."),
d9d99f
 	     STANDARD_MARGIN, STANDARD_MARGIN, term, dry_run);
d9d99f
 	}	
d9d99f
     }
d9d99f
@@ -443,7 +440,7 @@ menu_text_print_timeout (int timeout, void *dataptr)
d9d99f
       || data->timeout_msg == TIMEOUT_TERSE_NO_MARGIN)
d9d99f
     msg_translated = grub_xasprintf (_("%ds"), timeout);
d9d99f
   else
d9d99f
-    msg_translated = grub_xasprintf (_("The highlighted entry will be executed automatically in %ds."), timeout);
d9d99f
+    msg_translated = grub_xasprintf (_("The selected entry will be started automatically in %ds."), timeout);
d9d99f
   if (!msg_translated)
d9d99f
     {
d9d99f
       grub_print_error ();