From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HpfuF-00086n-FF for mharc-grub-devel@gnu.org; Sun, 20 May 2007 03:32:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpfuE-00085L-Ch for grub-devel@gnu.org; Sun, 20 May 2007 03:32:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpfuC-00084X-UT for grub-devel@gnu.org; Sun, 20 May 2007 03:32:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpfuC-00084U-Py for grub-devel@gnu.org; Sun, 20 May 2007 03:32:40 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HpfuB-0000Ds-IB for grub-devel@gnu.org; Sun, 20 May 2007 03:32:39 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Hpfu5-00020o-T7 for grub-devel@gnu.org; Sun, 20 May 2007 09:32:34 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1Hpfw9-000884-AT for grub-devel@gnu.org; Sun, 20 May 2007 09:34:41 +0200 Date: Sun, 20 May 2007 09:34:41 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070520073441.GC28837@aragorn> References: <20070519102101.GA9673@aragorn> <200705191930.26135.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705191930.26135.okuji@enbug.org> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: Re: gettext 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: Sun, 20 May 2007 07:32:42 -0000 On Sat, May 19, 2007 at 07:30:26PM +0200, Yoshinori K. Okuji wrote: > On Saturday 19 May 2007 12:21, Robert Millan wrote: > > Are there any plans to implement gettext ? If not, I'd like to send a > > proposal. > > Only a plan. Nothing has been done until now. I think we have three main > issues: > > - how to prevent calling getttext before loading it (note: I don't want to put > gettext in the kernel) We could put a gettext() stub in the kernel, then have gettext.mod replace it. > - what should be translated (how about error messages?) I would suggest starting with the userland part. Currently, update-grub (well, 10_linux) already generates a translatable string, which ends up showing in the menu. This can be l10n'ed before implementing the gettext module, and it would get it started by implementing the build system part of things (I assume both userland and kernel are going to use the same message catalogs). > - what should be done if a terminal is not capable of displaying most > characters (falling back to original messages? just displaying garbage?) I think update-grub should detect wether the system locale is using utf-8, and if not, set it to C. It can also detect whether gfxterm is being enabled. For users writing grub.cfg by hand, it's their responsability to enable gfxterm/whatever if they put utf-8 chars in it. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.