From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JGyHC-0001An-IS for mharc-grub-devel@gnu.org; Mon, 21 Jan 2008 10:09:30 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGyHB-0001AD-9E for grub-devel@gnu.org; Mon, 21 Jan 2008 10:09:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGyH9-00019j-NR for grub-devel@gnu.org; Mon, 21 Jan 2008 10:09:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGyH9-00019g-L6 for grub-devel@gnu.org; Mon, 21 Jan 2008 10:09:27 -0500 Received: from smtp-vbr15.xs4all.nl ([194.109.24.35]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGyH9-0007a2-De for grub-devel@gnu.org; Mon, 21 Jan 2008 10:09:27 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0LF9QSs033398 for ; Mon, 21 Jan 2008 16:09:26 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080114141015.GA27293@thorin> <20080114203225.GA21792@nubol.oskuro.net> <20080114231855.GA18277@thorin> <20080115225435.GA21928@nubol.oskuro.net> <878x2jxyc2.fsf@xs4all.nl> <1200925099.15198.16.camel@dv> Mail-Copies-To: mgerards@xs4all.nl Date: Mon, 21 Jan 2008 16:10:37 +0100 In-Reply-To: <1200925099.15198.16.camel@dv> (Pavel Roskin's message of "Mon, 21 Jan 2008 09:18:19 -0500") Message-ID: <87zluzuscy.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] fix flickering timeout message for slow terminals (gfxterm) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 15:09:29 -0000 Pavel Roskin writes: > On Mon, 2008-01-21 at 11:33 +0100, Marco Gerards wrote: >> Jordi Mallach 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