diff --git a/ChangeLog b/ChangeLog index 2b1d0a774..af42f85b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-23 Dalet Omega + + * grub-core/gfxmenu/gui_label.c (label_set_property): Add template + for usual informative messages. + 2012-02-23 Dalet Omega Starfield theme. diff --git a/grub-core/gfxmenu/gui_label.c b/grub-core/gfxmenu/gui_label.c index 688bea077..0721349cb 100644 --- a/grub-core/gfxmenu/gui_label.c +++ b/grub-core/gfxmenu/gui_label.c @@ -22,6 +22,7 @@ #include #include #include +#include static const char *align_options[] = { @@ -178,6 +179,17 @@ label_set_property (void *vself, const char *name, const char *value) } 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); }