Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NNBJE-0006b1-Gc for mharc-grub-devel@gnu.org; Tue, 22 Dec 2009 15:26:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNBJB-0006aa-5J for grub-devel@gnu.org; Tue, 22 Dec 2009 15:26:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNBJ6-0006Zc-Ui for grub-devel@gnu.org; Tue, 22 Dec 2009 15:26:16 -0500 Received: from [199.232.76.173] (port=50518 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNBJ6-0006ZZ-La for grub-devel@gnu.org; Tue, 22 Dec 2009 15:26:12 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:47946 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNBJ6-00020j-5t for grub-devel@gnu.org; Tue, 22 Dec 2009 15:26:12 -0500 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 97929288FBA1E for ; Tue, 22 Dec 2009 21:26:09 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 66F9110213; Tue, 22 Dec 2009 20:26:30 +0000 (GMT) Date: Tue, 22 Dec 2009 20:26:30 +0000 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20091222202630.GB25961@pina.cat> References: <20091221221916.GA26517@pina.cat> <20091222162931.GA26979@nubol.oskuro.net> <4B30F8A3.9040109@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B30F8A3.9040109@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: grub_error messages 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: Tue, 22 Dec 2009 20:26:18 -0000 Hi, On Dec/22/2009, Vladimir '??-coder/phcoder' Serbinenko wrote: > Jordi Mallach wrote: > > On Mon, Dec 21, 2009 at 10:19:16PM +0000, Carles Pina i Estany wrote: > > > >> b) At beginning I thought that we would not gettext error messages, but > >> I see that lot of these messages appears to the end user. Do we gettext > >> using N_(" ") and then where it's printed I use _(" ") ? I would say > >> yes. > >> > > > > No! Don't use any of N_() or _() if the message isn't meant to be translated. > > If it's extracted into the pot file but then it's not used by GRUB (not > > being marked with the necessary gettext call), it's a waste of time for > > translators, of course. > > > > > Jordi, I think you misunderstand. What Carles propose is to do real > gettext call in grub_error and not before calling it. We already use N_ > for this purpose. Vladimir: you got my point. In my mail I mixed a bit two messages: a) Asking confirmation that we will translate that messages (that my first thought was "not needed" but then I see that appears more than I was thinking) b) Implementation. Vladimir and everybody: I think that these strings are printed by grub_print_error (void), (kern/err.c), in this way: grub_err_printf ("error: %s\n", grub_errmsg); so we should NOT capitalise the message strings (in English, after colon is not capitalised). Plus I'm thinking to do: grub_err_printf ("error: %s.\n", _(grub_errmsg)); So the "." is not part of each string and we save some bytes. What do you think? I haven't tested what I said above... -- Carles Pina i Estany http://pinux.info