#include <grub/reader.h>
#include <grub/menu_viewer.h>
#include <grub/auth.h>
+#include <grub/i18n.h>
#define GRUB_DEFAULT_HISTORY_SIZE 50
grub_normal_init_page ();
grub_setcursor (1);
- grub_printf ("\
+ grub_printf (_("\
[ Minimal BASH-like line editing is supported. For the first word, TAB\n\
lists possible command completions. Anywhere else TAB lists possible\n\
- device/file completions.%s ]\n\n",
+ device/file completions.%s ]\n\n"),
reader_nested ? " ESC at any time exits." : "");
return 0;
#include <grub/command.h>
#include <grub/parser.h>
#include <grub/auth.h>
+#include <grub/i18n.h>
enum update_mode
{
}
grub_cls ();
- grub_printf (" Booting a command list\n\n");
+ grub_printf (_(" Booting a command list\n\n"));
/* Execute the script, line for line. */
grub_cls ();
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
- grub_printf ("\nPress any key to continue...");
+ grub_printf (_("\nPress any key to continue..."));
(void) grub_getkey ();
}
void
grub_wait_after_message (void)
{
- grub_printf ("\nPress any key to continue...");
+ grub_printf (_("\nPress any key to continue..."));
(void) grub_getkey ();
grub_putchar ('\n');
}
if (edit)
{
- grub_printf ("\n\
+ grub_printf (_("\n\
Minimum Emacs-like screen editing is supported. TAB lists\n\
completions. Press Ctrl-x to boot, Ctrl-c for a command-line\n\
- or ESC to return menu.");
+ or ESC to return menu."));
}
else
{
grub_printf (_("\n\
Use the %C and %C keys to select which entry is highlighted.\n"),
(grub_uint32_t) GRUB_TERM_DISP_UP, (grub_uint32_t) GRUB_TERM_DISP_DOWN);
- grub_printf ("\
+ grub_printf (_("\
Press enter to boot the selected OS, \'e\' to edit the\n\
- commands before booting or \'c\' for a command-line.");
+ commands before booting or \'c\' for a command-line."));
if (nested)
- grub_printf ("\n\
- ESC to return previous menu.");
+ grub_printf (_("\n\
+ ESC to return previous menu."));
}
}
notify_booting (grub_menu_entry_t entry,
void *userdata __attribute__((unused)))
{
- grub_printf (" Booting \'%s\'\n\n", entry->title);
+ grub_printf (_(" Booting \'%s\'\n\n"), entry->title);
}
/* Callback invoked when a default menu entry executed because of a timeout
notify_fallback (grub_menu_entry_t entry,
void *userdata __attribute__((unused)))
{
- grub_printf ("\n Falling back to \'%s\'\n\n", entry->title);
+ grub_printf (_("\n Falling back to \'%s\'\n\n"), entry->title);
grub_millisleep (DEFAULT_ENTRY_ERROR_DELAY_MS);
}
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
}
- grub_printf ("\n Failed to boot default entries.\n");
+ grub_printf (_("\n Failed to boot default entries.\n"));
grub_wait_after_message ();
}