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: Marco Gerards
Subject: Re: [PATCH] fix flickering timeout message for slow terminals (gfxterm)
Date: Mon, 21 Jan 2008 16:10:37 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Pavel Roskin <address@hidden> writes:

> 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.

If done efficiently, code shouldn't get too big.  Perhaps it is better
to integrate this into normal.mod?  I wouldn't mind a few extra KB
there for such a feature.

--
Marco





reply via email to

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