From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHOpk-0002d8-Vm for mharc-grub-devel@gnu.org; Thu, 18 Jun 2009 17:07:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHOpj-0002cM-Qq for grub-devel@gnu.org; Thu, 18 Jun 2009 17:07:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHOpf-0002Zr-SO for grub-devel@gnu.org; Thu, 18 Jun 2009 17:07:43 -0400 Received: from [199.232.76.173] (port=47755 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHOpf-0002Zi-Ka for grub-devel@gnu.org; Thu, 18 Jun 2009 17:07:39 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:59536 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHOpf-0001eH-4M for grub-devel@gnu.org; Thu, 18 Jun 2009 17:07:39 -0400 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTP id 132A5288F300D for ; Thu, 18 Jun 2009 23:07:38 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id AD60124887; Thu, 18 Jun 2009 22:07:36 +0100 (BST) Date: Thu, 18 Jun 2009 22:07:36 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20090618210736.GB20132@pina.cat> References: <20090616214709.GA31314@pina.cat> <20090617202913.GA4085@pina.cat> <20090618133828.GA20069@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Fw: gettext support 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: Thu, 18 Jun 2009 21:07:44 -0000 Hi, On Jun/18/2009, Vladimir 'phcoder' Serbinenko wrote: > If you want I'll add compilation po to mo to build system. this would be very nice and speed up the process :-) As it's written in the TODO in grub/po, we need: -Compile all .po to .mo (msgfmt $LANG.po -o $LANG.mo) (during the make of Grub?) -Copy to /usr/share/locale/$LANG/LC_MESSAGES/grub.mo (or /usr/local/share/locale/$LANG/LC_MESSAGES/..., so $prefix...) ((Well, now with the last changes I suggest to copy *.mo to $prefix/locale/ :-) )) -Make uptrans should execute: uptrans: xgettext -k_ -LC -o - `find "$(srcdir)/" -name '*.c'` -o po/grub.pot xgettext -k_ -Lshell -o - $(GRUBD)/* -j -o po/grub.pot (first line generates the new po template from the *.c files and otehr one from the grub.d scripts) Then we have other things to do, like be sure that the scripts that generates grub.cfg are using the appropiate location of the files. For example, 10_linux.d is using $eval_gettext, and the system has the grub-gettext_lib.in that setups some paths and includes gettext.sh (this is a generic script that comes with gettext-base package). Maybe we can, now (next days) add gettext support in Grub booting time and then to the scripts? -- Carles Pina i Estany http://pinux.info