From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHnCc-0005u9-7j for mharc-grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHnCa-0005s9-T1 for grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHnCW-0005pj-FJ for grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:56 -0400 Received: from [199.232.76.173] (port=54537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHnCW-0005pg-9d for grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:52 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55465) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHnCV-0004Wj-Vq for grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:52 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197] helo=mail.pina.cat) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHnCT-0001mu-Gj for grub-devel@gnu.org; Fri, 19 Jun 2009 19:08:49 -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 9E5F9288F2FA1 for ; Sat, 20 Jun 2009 01:08:45 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id AC4317D4E5; Sat, 20 Jun 2009 00:08:44 +0100 (BST) Date: Sat, 20 Jun 2009 00:08:44 +0100 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20090619230844.GB7064@pina.cat> References: <20090616214709.GA31314@pina.cat> <20090618205607.GA20132@pina.cat> <20090619103747.GC19777@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090619103747.GC19777@thorin> User-Agent: Mutt/1.5.18 (2008-05-17) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: Fri, 19 Jun 2009 23:08:57 -0000 Hi, On Jun/19/2009, Robert Millan wrote: > On Thu, Jun 18, 2009 at 09:56:07PM +0100, Carles Pina i Estany wrote: > > > > -Copy ca.mo to /usr/share/locale/ca/LC_MESSAGES/grub.mo > > > > > > Languages files should go to a subdir of $PREFIX. E.g. to > > > $PREFIX/langs/$LANG.mo linux directories may be inaccessible > > > > Now the gettext module will search in $prefix/locale/lang.mo, where lang > > is the variable that the user will setup in grub.cfg (e.g. ca for > > catalan) and $prefix is usually /boot/grub > > Uhm I'm not sure I agree on this one. Sure, they may be inaccessible, > but only in very rare setups. On the other hand, we _still_ need a > .mo in the standard directory, because some strings in grub-mkconfig > are critical (they generate text that populates menu entry titles). > So that would mean installing two .mo files. Is it really worth the > hassle? Two things: a) I afraid that having the .mo files in /usr/share/... makes Grub quite much tight to GNU/Linux. In my opinion, boot loaders should be as much as operating system agnostic as could be. b) grub-mkconfig needs a path to search the .mo file. This can be /usr/share/locale or /boot/grub/locale, it's not a big difference Regards, -- Carles Pina i Estany http://pinux.info