From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LJRHB-0005TQ-08 for mharc-grub-devel@gnu.org; Sun, 04 Jan 2009 06:36:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJRH9-0005TF-Cu for grub-devel@gnu.org; Sun, 04 Jan 2009 06:36:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJRH8-0005T3-OV for grub-devel@gnu.org; Sun, 04 Jan 2009 06:36:11 -0500 Received: from [199.232.76.173] (port=42976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJRH8-0005T0-II for grub-devel@gnu.org; Sun, 04 Jan 2009 06:36:10 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:39604 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJRH8-00005K-06 for grub-devel@gnu.org; Sun, 04 Jan 2009 06:36:10 -0500 Received: from pinux (unknown [192.168.0.78]) by mail.pina.cat (Postfix) with ESMTP id 0614128904CA0 for ; Sun, 4 Jan 2009 12:36:07 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id B8FCF7C6DD; Sun, 4 Jan 2009 12:36:05 +0100 (CET) Date: Sun, 4 Jan 2009 12:36:05 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20090104113605.GA26441@pina.cat> References: <20080926081627.GA8732@pina.cat> <20080926083411.GA8845@pina.cat> <1222427611.4210.1.camel@fz.local> <20080926121909.GB9530@pina.cat> <20080928133907.GC23805@thorin> <20081207233308.GA15844@pina.cat> <20081208143349.GA6086@pina.cat> <20081214010348.GB25952@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081214010348.GB25952@thorin> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: localization of Grub 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, 04 Jan 2009 11:36:11 -0000 Hello, On Dec/14/2008, Robert Millan wrote: > On Mon, Dec 08, 2008 at 03:33:49PM +0100, Carles Pina i Estany wrote: > > Which method do you think that we should use? > > With failback option? > > I have no idea about this, and others in this list didn't reply. I suggest > you ask Jordi Mallach (CCed). He's quite knowledgeable about such things > and often hangs around here too ;-) I've resent the mail to Jordi... Today morning I've implemented a .mo reader, based on this specification: http://www.gnu.org/software/gettext/manual/html_node/MO-Files.html#MO-Files It's a very basic implementation, and not inside Grub but as a C standalone program. After having the the shell scripts localization I will port my .mo reader to Grub. Right now is not using the hash table, we save a bit of space in the .mo files and in code (I haven't implemented, I don't think that Grub has so much strings to need the hash table, specially when the documentation says: ----------- The size S of the hash table can be zero. In this case, the hash table itself is not contained in the MO file. Some people might prefer this because a precomputed hashing table takes disk space, and does not win that much speed. The hash table contains indices to the sorted array of strings in the MO file. Conflict resolution is done by double hashing. The precise hashing algorithm used is fairly dependent on GNU gettext code, and is not documented here. ----------- Happy new year, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info