All of lore.kernel.org
 help / color / mirror / Atom feed
* Default theme for GRUB 2
@ 2011-12-22 11:11 Dalet Omega
  2011-12-22 11:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Dalet Omega @ 2011-12-22 11:11 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 419 bytes --]

[-- Attachment #2: temp.diff --]
[-- Type: text/x-patch, Size: 1148 bytes --]

=== 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);
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-22 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-22 11:11 Default theme for GRUB 2 Dalet Omega
2011-12-22 11:13 ` Vladimir 'φ-coder/phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.