* grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.

* grub-core/normal/main.c (grub_normal_read_line_real): Gettext
	prompt here.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-12 19:24:23 +01:00
parent b4ba8e025b
commit a9e9dc7c5e
3 changed files with 13 additions and 7 deletions

View file

@ -385,9 +385,11 @@ grub_normal_read_line_real (char **line, int cont, int nested)
const char *prompt;
if (cont)
prompt = ">";
/* TRANSLATORS: it's command line prompt. */
prompt = _(">");
else
prompt = "grub>";
/* TRANSLATORS: it's command line prompt. */
prompt = _("grub>");
if (!prompt)
return grub_errno;
@ -396,7 +398,7 @@ grub_normal_read_line_real (char **line, int cont, int nested)
{
*line = grub_cmdline_get (prompt);
if (*line)
break;
return 0;
if (cont || nested)
{
@ -405,8 +407,7 @@ grub_normal_read_line_real (char **line, int cont, int nested)
return grub_errno;
}
}
return 0;
}
static grub_err_t