* 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:
parent
b4ba8e025b
commit
a9e9dc7c5e
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
|
* grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
|
||||||
|
|
|
@ -211,7 +211,7 @@ struct cmdline_term
|
||||||
otherwise return command line. */
|
otherwise return command line. */
|
||||||
/* FIXME: The dumb interface is not supported yet. */
|
/* FIXME: The dumb interface is not supported yet. */
|
||||||
char *
|
char *
|
||||||
grub_cmdline_get (const char *prompt)
|
grub_cmdline_get (const char *prompt_translated)
|
||||||
{
|
{
|
||||||
grub_size_t lpos, llen;
|
grub_size_t lpos, llen;
|
||||||
grub_size_t plen;
|
grub_size_t plen;
|
||||||
|
@ -228,7 +228,6 @@ grub_cmdline_get (const char *prompt)
|
||||||
auto void cl_set_pos_all (void);
|
auto void cl_set_pos_all (void);
|
||||||
auto void init_clterm (struct cmdline_term *cl_term_cur);
|
auto void init_clterm (struct cmdline_term *cl_term_cur);
|
||||||
auto void init_clterm_all (void);
|
auto void init_clterm_all (void);
|
||||||
const char *prompt_translated = _(prompt);
|
|
||||||
struct cmdline_term *cl_terms;
|
struct cmdline_term *cl_terms;
|
||||||
char *ret;
|
char *ret;
|
||||||
unsigned nterms;
|
unsigned nterms;
|
||||||
|
|
|
@ -385,9 +385,11 @@ grub_normal_read_line_real (char **line, int cont, int nested)
|
||||||
const char *prompt;
|
const char *prompt;
|
||||||
|
|
||||||
if (cont)
|
if (cont)
|
||||||
prompt = ">";
|
/* TRANSLATORS: it's command line prompt. */
|
||||||
|
prompt = _(">");
|
||||||
else
|
else
|
||||||
prompt = "grub>";
|
/* TRANSLATORS: it's command line prompt. */
|
||||||
|
prompt = _("grub>");
|
||||||
|
|
||||||
if (!prompt)
|
if (!prompt)
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
@ -396,7 +398,7 @@ grub_normal_read_line_real (char **line, int cont, int nested)
|
||||||
{
|
{
|
||||||
*line = grub_cmdline_get (prompt);
|
*line = grub_cmdline_get (prompt);
|
||||||
if (*line)
|
if (*line)
|
||||||
break;
|
return 0;
|
||||||
|
|
||||||
if (cont || nested)
|
if (cont || nested)
|
||||||
{
|
{
|
||||||
|
@ -406,7 +408,6 @@ grub_normal_read_line_real (char **line, int cont, int nested)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static grub_err_t
|
static grub_err_t
|
||||||
|
|
Loading…
Reference in a new issue