Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHbYL-0007iC-F5 for mharc-grub-devel@gnu.org; Fri, 19 Jun 2009 06:42:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHbYI-0007g6-Im for grub-devel@gnu.org; Fri, 19 Jun 2009 06:42:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHbYD-0007di-SQ for grub-devel@gnu.org; Fri, 19 Jun 2009 06:42:34 -0400 Received: from [199.232.76.173] (port=42061 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHbYD-0007dc-L1 for grub-devel@gnu.org; Fri, 19 Jun 2009 06:42:29 -0400 Received: from mail-fx0-f224.google.com ([209.85.220.224]:33495) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHbYD-0000Gl-4b for grub-devel@gnu.org; Fri, 19 Jun 2009 06:42:29 -0400 Received: by fxm24 with SMTP id 24so2326206fxm.42 for ; Fri, 19 Jun 2009 03:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ZvIyjp4LyObqDE4jF280HL0DVJt4ftqFrdmN5rQYX60=; b=fXjTIgeAWZRG3FBWb8p3klCzQd/eQk1DZt4oTFk6IcPcJGPJi5ZsQY9qBKtRm7RyzF wH/U6HrAXPuCfT7LZuZiRSasLdPxF9bb3z/0KAIfCbzbn+DHV3IO742c4qoOjYYdF7Xb SyG0twkcirEsHQICkojjs0QLb3w13KZBVcbDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=h7/c0iBVlsq04zQip27wMNbweOcrPA2ATFgy0A+9Ojm21kmYXhp8hRX/DX8YumhTO4 5dOpMIjNiwMOilnocWqrayf1GVrt8U4k6vgJwL73BrFg95gmBwj/SeTicUMyQbhcjfzr +Wm142+IaRe3atfDChM/0TuTG/pLRpoFixOuQ= MIME-Version: 1.0 Received: by 10.204.57.18 with SMTP id a18mr2467493bkh.19.1245408146783; Fri, 19 Jun 2009 03:42:26 -0700 (PDT) In-Reply-To: <20090619103747.GC19777@thorin> References: <20090616214709.GA31314@pina.cat> <20090618205607.GA20132@pina.cat> <20090619103747.GC19777@thorin> Date: Fri, 19 Jun 2009 12:42:26 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636c5c272308be3046cb12e70 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 10:42:35 -0000 --001636c5c272308be3046cb12e70 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jun 19, 2009 at 12:37 PM, 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? > It's not a problem. We need two locations anyway: one where make install copies them and the other one where ./grub-install copies them. Would it be possible to use /usr/share/grub/locale/$LANG.mo rather than /usr/share/locale/$LANG/LC_MESSAGES/grub.mo? It would make grub-install easier > > What does everyone else think about this? > > -- > Robert Millan > > The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and > how) you may access your data; but nobody's threatening your freedom: we > still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko --001636c5c272308be3046cb12e70 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Jun 19, 2009 at 12:37 PM, Robert= Millan <rmh@aybabt= u.com> wrote:
On Thu, Jun 18, 2009 at 09:56:07PM +0100, Carles Pina i E= stany wrote:
> > > =A0 =A0 =A0 =A0 -Copy ca.mo to /usr/share/locale/ca/LC_MESSA= GES/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 la= ng
> 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. =A0Sure, they may be inacce= ssible, but
only in very rare setups. =A0On the other hand, we _still_ need a .mo in th= e
standard directory, because some strings in grub-mkconfig are critical
(they generate text that populates menu entry titles). =A0So that would mea= n
installing two .mo files. =A0Is it really worth the hassle?
It's not a problem. We need two locations anyway: one= where make install copies them and the other one where ./grub-install copi= es them. Would it be possible to use /usr/share/grub/locale/$LANG.mo rather= than /usr/share/locale/$LANG/LC_
MESSAGES/grub.mo? It would make grub-install easier

What does everyone else think about this?

--
Robert Millan

=A0The DRM opt-in fallacy: "Your data belongs to us. We will decide w= hen (and
=A0how) you may access your data; but nobody's threatening your freedo= m: we
=A0still allow you to remove your data and not access it at all."


_______________________________________________



--
Regards
= Vladimir 'phcoder' Serbinenko
--001636c5c272308be3046cb12e70--