2009-12-05 Carles Pina i Estany <carles@pina.cat>

* normal/menu_text.c (grub_color_menu_high): Gettexttize string.
	(print_spaces): New function.
	(grub_print_ucs4): New function.
	(getstringwidth): New function.
	(print_message_indented): New function.
	(print_message): Gettexttize strings using print_message_indented.
	(run_menu): Replaces grub_printf by print_spaces and dynamic terminal
	width.
	(get_entry_number): Gettextize and uses dynamic terminal width.
	(notify_booting, notify_fallback, notify_execution_failure): 
	Gettextize.
	* normal/menu_entry.c (store_completion): Cleanup the gettextized
	string.
	(run): Likewise.
	(grub_menu_entry_run): Likewise.
	* PO/POTFILES: Add normal/menu_entry.c.
This commit is contained in:
Carles Pina i Estany 2009-12-05 11:25:07 +00:00
parent f616f51c3c
commit 69055f8a2f
4 changed files with 164 additions and 25 deletions

View file

@ -836,7 +836,9 @@ store_completion (const char *item, grub_completion_type_t type, int count)
}
grub_gotoxy (0, GRUB_TERM_HEIGHT - 3);
grub_printf (" Possible %s are:\n ", what);
grub_printf (" ");
grub_printf (_("Possible %s are:"), what);
grub_printf ("\n ");
}
/* Make sure that the completion buffer has enough room. */
@ -997,7 +999,9 @@ run (struct screen *screen)
}
grub_cls ();
grub_printf (_(" Booting a command list\n\n"));
grub_printf (" ");
grub_printf (_("Booting a command list"));
grub_printf ("\n\n");
/* Execute the script, line for line. */
@ -1177,6 +1181,7 @@ grub_menu_entry_run (grub_menu_entry_t entry)
grub_cls ();
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
grub_printf (_("\nPress any key to continue..."));
grub_putchar ('\n');
grub_printf (_("Press any key to continue..."));
(void) grub_getkey ();
}