From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L9hBO-0008UU-32 for mharc-grub-devel@gnu.org; Mon, 08 Dec 2008 09:33:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9hBM-0008T9-H8 for grub-devel@gnu.org; Mon, 08 Dec 2008 09:33:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9hBI-0008Pg-RD for grub-devel@gnu.org; Mon, 08 Dec 2008 09:33:56 -0500 Received: from [199.232.76.173] (port=40361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9hBI-0008PR-Kl for grub-devel@gnu.org; Mon, 08 Dec 2008 09:33:52 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:55702 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9hBI-0002vf-5v for grub-devel@gnu.org; Mon, 08 Dec 2008 09:33:52 -0500 Received: from pinux (unknown [192.168.0.71]) by mail.pina.cat (Postfix) with ESMTP id D73CB28412659 for ; Mon, 8 Dec 2008 15:33:50 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id CA1F728F; Mon, 8 Dec 2008 15:33:49 +0100 (CET) Date: Mon, 8 Dec 2008 15:33:49 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20081208143349.GA6086@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081207233308.GA15844@pina.cat> 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: Mon, 08 Dec 2008 14:33:56 -0000 Hello, On Dec/08/2008, Carles Pina i Estany wrote: > 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 They use gettext.sh file, in my Debian is in: /usr/bin/gettext.sh, in package gettext-base . Do you think that this is the best way? Do we assume that gettext.sh it's there, or we provide backfail mechanism? (for example I don't think that this file comes with cygwin...) I can translate in two ways: ---- echo $(gettext "hello world") eval_gettext "hello world";echo ---- so, with eval_gettext (comes from gettext.sh) or from gettext binary straight. eval_gettext helps a bit substituing shell variables: # eval_gettext MSGID # looks up the translation of MSGID and substitutes shell variables in the # result. eval_gettext () { gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst "$1") } But we could do it without gettext.sh Which method do you think that we should use? With failback option? Thanks, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info