]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gfxmenu/gui_label.c (label_set_property): Add template
authorDalet Omega <daletomega@gmail.com>
Thu, 23 Feb 2012 16:30:19 +0000 (17:30 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 23 Feb 2012 16:30:19 +0000 (17:30 +0100)
for usual informative messages.

ChangeLog
grub-core/gfxmenu/gui_label.c

index 2b1d0a774e9603de92b9a7c7c1ee478e2ad24080..af42f85b8fffbaf24a538cddce4ada58b51e0236 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 688bea077c0c6a1442f759d48170872d3a823dce..0721349cb1e48a99f7b245f5757c985b4cddae90 100644 (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);
        }