From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JGxTk-0000dM-MC for mharc-grub-devel@gnu.org; Mon, 21 Jan 2008 09:18:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGxTj-0000dF-94 for grub-devel@gnu.org; Mon, 21 Jan 2008 09:18:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGxTh-0000cu-NM for grub-devel@gnu.org; Mon, 21 Jan 2008 09:18:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGxTh-0000cr-Kn for grub-devel@gnu.org; Mon, 21 Jan 2008 09:18:21 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JGxTh-0001Je-Ct for grub-devel@gnu.org; Mon, 21 Jan 2008 09:18:21 -0500 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 21 Jan 2008 09:18:20 -0500 Received: from [192.168.1.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 252EE618FE1 for ; Mon, 21 Jan 2008 09:18:20 -0500 (EST) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <878x2jxyc2.fsf@xs4all.nl> References: <20080114141015.GA27293@thorin> <20080114203225.GA21792@nubol.oskuro.net> <20080114231855.GA18277@thorin> <20080115225435.GA21928@nubol.oskuro.net> <878x2jxyc2.fsf@xs4all.nl> Content-Type: text/plain Date: Mon, 21 Jan 2008 09:18:19 -0500 Message-Id: <1200925099.15198.16.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-3.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 14:18:23 -0000 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. -- Regards, Pavel Roskin