From: Carles Pina i Estany <carles@pina.cat>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH] Fix locale installation
Date: Fri, 19 Mar 2010 22:28:16 +0000 [thread overview]
Message-ID: <20100319222816.GA25289@pina.cat> (raw)
In-Reply-To: <20100319222120.GA20777@riva.ucam.org>
Hello,
On Mar/19/2010, Colin Watson wrote:
> On Fri, Mar 19, 2010 at 08:35:23PM +0000, Carles Pina i Estany wrote:
> > On Mar/19/2010, Colin Watson wrote:
> > > # Copy gettext files
> > > mkdir -p ${grubdir}/locale/
> > > -for file in ${grubdir}/locale/*.mo ${pkglibdir}/locale/*.mo; do
> > > - if test -f "$file"; then
> > > - cp -f "$file" ${grubdir}/locale/
> > > +for dir in ${localedir}/*; do
> > > + if test -f "$dir/LC_MESSAGES/grub.mo"; then
> > > + cp -f "$dir/LC_MESSAGES/grub.mo" "${grubdir}/locale/${dir##*/}.mo"
> > > fi
> > > done
> >
> > (I'll use shell variables in a bit "on my own way")
> >
> > AFAIK the files are in po/$lang.{po,mo}, right? (at least in
> > my system without using another directory for the building, I need to
> > look in the other issue soon)
>
> In the source, they live in po/$lang.po and po/$lang.mo. However, when
> you run 'make install', they end up in
> $datadir/locale/$lang/LC_MESSAGES/grub.mo. grub-install should be
> looking at the paths used by 'make install', rather than the paths in
> the source tree which generally won't be accessible.
ahh, yeap, I confused grub-install and make install
> > I thought that make install was copying from po/$lang.mo to
> > /usr/share/locale/$lang/LC_MESSAGES/grub.mo, but you are copying already
> > from some structure in $localedir/LC_MESSAGES/grub.mo. What am I missing?
>
> You just misread my code slightly, I think. I'm actually copying from
I mixed grub-install/make install and what you was doing there...
> $localedir/*/LC_MESSAGES/grub.mo. My code will copy (e.g.)
> /usr/share/locale/es/LC_MESSAGES/grub.mo to /boot/grub/locale/es.mo.
> This seems better than creating lots of subdirectories of
> /boot/grub/locale/.
Yeap, in that case you are right and the code looks fine :-)
--
Carles Pina i Estany
http://pinux.info
next prev parent reply other threads:[~2010-03-19 22:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 11:50 [PATCH] Fix locale installation Colin Watson
2010-03-19 20:35 ` Carles Pina i Estany
2010-03-19 22:21 ` Colin Watson
2010-03-19 22:28 ` Carles Pina i Estany [this message]
2010-03-21 23:07 ` Colin Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100319222816.GA25289@pina.cat \
--to=carles@pina.cat \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.