Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ND5Qg-0006vC-PM for mharc-grub-devel@gnu.org; Tue, 24 Nov 2009 19:08:18 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ND5Qe-0006uz-QY for grub-devel@gnu.org; Tue, 24 Nov 2009 19:08:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ND5Qa-0006tN-Cx for grub-devel@gnu.org; Tue, 24 Nov 2009 19:08:16 -0500 Received: from [199.232.76.173] (port=51510 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND5Qa-0006tG-6Q for grub-devel@gnu.org; Tue, 24 Nov 2009 19:08:12 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:35752 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ND5QZ-0000LX-KE for grub-devel@gnu.org; Tue, 24 Nov 2009 19:08:11 -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 46D14288FBA11 for ; Wed, 25 Nov 2009 01:08:06 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 7D1C41561F; Wed, 25 Nov 2009 00:08:12 +0000 (GMT) Date: Wed, 25 Nov 2009 00:08:12 +0000 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20091125000812.GA30522@pina.cat> References: <20091122235013.GA12142@pina.cat> <20091123120412.GE25009@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091123120412.GE25009@thorin> 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: gettextize normal/menu_text.c (print_timeout) 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: Wed, 25 Nov 2009 00:08:16 -0000 Hi, > > + const char *msg_localized = _(" The highlighted entry will be booted automatically in %ds."); > > + const int msg_localized_len = grub_strlen (msg_localized); > > + const int number_spaces = GRUB_TERM_WIDTH - msg_localized_len; > > Seems like the right approach. I wonder if we should do something > about the preceding spaces too... find attached a patch that gettextizes menu_text.c Would be ok to apply? Any comments? (Wed and Thu I will not have lot of time, but on Friday-weekend I hope to push more strings) -- Carles Pina i Estany http://pinux.info