From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L9T7l-0006c3-LE for mharc-grub-devel@gnu.org; Sun, 07 Dec 2008 18:33:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9T7j-0006aq-C4 for grub-devel@gnu.org; Sun, 07 Dec 2008 18:33:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9T7i-0006aA-9z for grub-devel@gnu.org; Sun, 07 Dec 2008 18:33:14 -0500 Received: from [199.232.76.173] (port=51091 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9T7h-0006a4-TY for grub-devel@gnu.org; Sun, 07 Dec 2008 18:33:13 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:37137 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9T7h-0006rq-85 for grub-devel@gnu.org; Sun, 07 Dec 2008 18:33:13 -0500 Received: from pinux (unknown [192.168.0.71]) by mail.pina.cat (Postfix) with ESMTP id C55FD28412659 for ; Mon, 8 Dec 2008 00:33:09 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id C1BFD7356; Mon, 8 Dec 2008 00:33:08 +0100 (CET) Date: Mon, 8 Dec 2008 00:33:08 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20081207233308.GA15844@pina.cat> References: <20080926081627.GA8732@pina.cat> <20080926083411.GA8845@pina.cat> <1222427611.4210.1.camel@fz.local> <20080926121909.GB9530@pina.cat> <20080928133907.GC23805@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080928133907.GC23805@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, 07 Dec 2008 23:33:15 -0000 Hello again, Let me to re-open this thread, where we were discussing about localization and translation: On Sep/28/2008, Robert Millan wrote: > On Fri, Sep 26, 2008 at 02:19:09PM +0200, Carles Pina i Estany wrote: > > > > > > This is wanted but nobody did work on this yet afaik. > > > It would be good if there would be multiple keyboard layouts too I > > > think. > > > > I think that different keyboard layouts it's even more important than > > different languages... > > > > Do we have any plan? Maybe I will take a look (but during 20 days in > > october I will not have lot of time :-( so not sure if I will do it > > after October or not, I will see...) > > > > Any suggestion for the implementation? How user would change the > > keyboard layout? Or maybe at beginning some setting (variable) at > > grub.cfg? > > Hi, > > It's very nice you want to work on localisation. This is a very welcome > feature (and I think it's been discussed before). > > (I assume we're talking about a gettext equivalent rather than keyboard > layouts, which is a separate -but also nice- feature) > > My recommendation for a roadmap (please comment/discuss/challenge/etc!) would > be: > > - gettextise the util tools, so they can be translated as normal programs. Do you mean the strings that are generated in standard Linux user-space and written to grub.cfg? What do you (everybody in the list) think about the text help that appears here and there (output of Grub -usually shell- commands?) Needed? Or these texts are good enough in English (like commands in the programming languages) > - add support to grub (a gettext module or so) so that it can load our .mo > files and obtain strings from it, by implementing gettext() (aka _()). This part is more clear (at least theoretically, of course :-) ) I understand that all error messages, messages, etc. that Grub prints while Grub is executing should be translated. My understanding is that we should have some module to handle some function (eg. _()), that would read some variable to choose to which language, if available, translate some string. Like gettext, as you said. > I'd also recommend making the user interface similar to posix locales, for > consistency's sake (which you know I hold dearly ;-)). I agree I'm not familiar in the .mo internals, I will take a look. I understand that this gives us quite much flexibility, if we would implement everything (like argument orders, etc.) > Even if you only have time/interest to implement the first part, this > is already a significant benefit. Keep in mind that grub.cfg > generation is done by update-grub which happens entirely on userland, > so we get translated menu entries that way. As I said before by mail, grub.cfg don't have lot of UI strings. Some, but not a lot. I understand that we/I should adapt some scripts using, for example, this guideline?: http://www.gnu.org/software/automake/manual/gettext/Preparing-Shell-Scripts.html (I haven't tested now, I think that some years ago I did some tests with Bash and gettext) -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info