* grub-core/gfxmenu/gui_label.c (label_set_property): Add template

for usual informative messages.
This commit is contained in:
Dalet Omega 2012-02-23 17:30:19 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent c588497385
commit 72f1d06552
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-02-23 Dalet Omega <daletomega@gmail.com>
* grub-core/gfxmenu/gui_label.c (label_set_property): Add template
for usual informative messages.
2012-02-23 Dalet Omega <daletomega@gmail.com>
Starfield theme.

View file

@ -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[] =
{
@ -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);
}