grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix flickering timeout message for slow terminals (gfxterm)


From: Pavel Roskin
Subject: Re: [PATCH] fix flickering timeout message for slow terminals (gfxterm)
Date: Mon, 21 Jan 2008 09:18:19 -0500

On Mon, 2008-01-21 at 11:33 +0100, Marco Gerards wrote:
> Jordi Mallach <address@hidden> writes:
> 
> > On Tue, Jan 15, 2008 at 12:18:55AM +0100, Robert Millan wrote:
> >> Is this better?
> >> +      char *msg = "   The highlighted entry will be booted automatically 
> >> in %ds.    ";
> >> +      char *msg_end = grub_strchr (msg, '%');
> >> +
> >> +      grub_printf (second_stage ? msg_end : msg, timeout);
> >
> > Yes; however as discussed on IRC we'll eventually have to take into
> > account plural form handling. I need to discuss this with Danilo Segan
> > or Christian Perrier for this particular case.
> 
> Is gettext capable of this?

Yes.  It's very good at it.  But I don't know how heavy the runtime part
is going to be.  I don't think we can just link a library into GRUB, so
perhaps it will need to be copied to the GRUB sources and stripped down.

But I still think it would be an overkill.  Even the Linux kernel
doesn't offer any translation for its boot messages.

And if we go with the translation, I think it should be possible for any
language to rephrase messages in a way that would not require plural
handling.

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]