Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nvedb-0007xA-Il for mharc-grub-devel@gnu.org; Sat, 27 Mar 2010 18:37:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nveda-0007ws-28 for grub-devel@gnu.org; Sat, 27 Mar 2010 18:37:50 -0400 Received: from [140.186.70.92] (port=58467 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvedY-0007wC-IJ for grub-devel@gnu.org; Sat, 27 Mar 2010 18:37:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvedW-0001PR-Ln for grub-devel@gnu.org; Sat, 27 Mar 2010 18:37:48 -0400 Received: from relay2-v.mail.gandi.net ([217.70.178.76]:45646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvedW-0001PJ-BV for grub-devel@gnu.org; Sat, 27 Mar 2010 18:37:46 -0400 X-Originating-IP: 217.70.178.40 Received: from mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.40]) by relay2-v.mail.gandi.net (Postfix) with ESMTP id 2E2EB135DA for ; Sat, 27 Mar 2010 23:37:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter6-v Received: from relay2-v.mail.gandi.net ([217.70.178.76]) by mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.40]) (amavisd-new, port 10024) with ESMTP id 8fkSbAC-ZRba for ; Sat, 27 Mar 2010 23:37:43 +0100 (CET) X-Originating-IP: 80.32.81.197 Received: from mail.pina.cat (197.Red-80-32-81.staticIP.rima-tde.net [80.32.81.197]) (Authenticated sender: pina@pina.cat) by relay2-v.mail.gandi.net (Postfix) with ESMTPSA id A8CD4135D7 for ; Sat, 27 Mar 2010 23:37:41 +0100 (CET) Received: from pinux (cpc2-hari6-0-0-cust86.hari.cable.virginmedia.com [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTPA id D33D2288F305F for ; Sat, 27 Mar 2010 23:37:40 +0100 (CET) Received: from pinux (localhost.localdomain [127.0.0.1]) by pinux (Postfix) with ESMTP id DCBBE723BF for ; Sat, 27 Mar 2010 22:37:39 +0000 (GMT) Received: by pinux (Postfix, from userid 1000) id A58D5723BB; Sat, 27 Mar 2010 22:36:39 +0000 (GMT) Date: Sat, 27 Mar 2010 22:36:39 +0000 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20100327223639.GA20496@pina.cat> References: <20100319235656.GA1677@pina.cat> <4BACDA08.4050503@gmail.com> <20100327005416.GA14529@pina.cat> <20100327112954.GA2376@nubol.oskuro.net> <20100327214237.GA19079@pina.cat> <20100327222050.GL20468@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100327222050.GL20468@riva.ucam.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: gettext util X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 22:37:50 -0000 Hi, On Mar/27/2010, Colin Watson wrote: > On Sat, Mar 27, 2010 at 09:42:37PM +0000, Carles Pina i Estany wrote: > > I have not seen any program (again, yet, maybe Grub will be the first > > one) to split the messages in this way. > > man-db does this, and it's fantastic. It vastly reduces the number of > translation changes I have to deal with. It wasn't practical until I > switched to the argp option parsing library which deals with a lot of > the presentation issues, so that may be why a lot of programs that just > use simple help output functions don't do it, but certainly as a > maintainer it's vastly easier once it's done, and I haven't heard any > complaints from translators. I understand that you mean to use something like: http://www.faqs.org/docs/learnc/x948.html > > b) Makes the alignment more difficult > > argp deals with this, and it's in Gnulib. We could import it without > too much difficulty. I like this idea > > c) Makes the code a bit less clear > > IME the code is actually rather clearer with argp. You can look at > man-db if you'd like to compare. In fact, I'd encourage that - it > would give us a common basis for discussion. I will look into that > > Comment: sadly our grub.po already has someo of these long messages. > > Would you change it and "force" the translators to change? > > Well, such a change would be one-time and would be not much more > painful than any addition of an option under the long-message system. So, how it looks if I try to migrate to argp for the utils/* programs? Probably I will not have lot of time on next days/weeks, but I will try to migrate one of the utils/ program to discuss on it and then do the same with the other ones. Unless someone complains (please, do soon rather than later :-) ) that argp would introduce some problems. I'm thinking with portability problems or something like this. Cheers, -- Carles Pina i Estany http://pinux.info