Hello,

I composed a theme for GRUB2. You can find it at
http://download-mirror.savannah.gnu.org/releases/grub/daletomega/ (uploaded
by phcoder). In order to get rid of information texts in the theme.txt, the
attached patch is needed. No proprietary material has been used for the
theme.

Kind Regards

Daletomega
=== modified file 'grub-core/gfxmenu/gui_label.c'
--- grub-core/gfxmenu/gui_label.c	2010-12-10 16:45:58 +0000
+++ grub-core/gfxmenu/gui_label.c	2011-12-15 12:15:31 +0000
@@ -22,6 +22,7 @@
 #include <grub/gui.h>
 #include <grub/font.h>
 #include <grub/gui_string_util.h>
+#include <grub/i18n.h>
 
 static const char *align_options[] =
 {
@@ -176,6 +177,17 @@ label_set_property (void *vself, const c
 	}
       else
 	{
+	   if (grub_strcmp (value, "@KEYMAP_LONG@") == 0)
+	    value = _("Press enter to boot the selected OS, "
+	       "\'e\' to edit the commands before booting "
+	       "or \'c\' for a command-line. ESC to return previous menu.");
+           else if (grub_strcmp (value, "@KEYMAP_MIDDLE@") == 0)
+	    value = _("Press enter to boot the selected OS, "
+	       "\'e\' to edit the commands before booting "
+	       "or \'c\' for a command-line.");
+	   else if (grub_strcmp (value, "@KEYMAP_SHORT@") == 0)
+	    value = _("enter: boot, \'e\': options, \'c\': cmd-line");
+	   /* FIXME: Add more templates here if needed.  */
 	  self->template = grub_strdup (value);
 	  self->text = grub_xasprintf (value, self->value);
 	}

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to