All of lore.kernel.org
 help / color / mirror / Atom feed
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 20:35:23 +0000	[thread overview]
Message-ID: <20100319203523.GA7679@pina.cat> (raw)
In-Reply-To: <20100319115008.GV20777@riva.ucam.org>


Hello,

On Mar/19/2010, Colin Watson wrote:
> (cpina, if you're reading, I'd particularly appreciate your review.)

Here I am

> As far as I can see, locale installation is just wrong right now.

I cannot test it easily now.

I'll comment the new thing forgetting about the old one (doesn't look
right)

>  # 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)

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?

It has been a while that I have not done these things, so sorry to be
more an "askwer" than "answerer".

-- 
Carles Pina i Estany
	http://pinux.info



  reply	other threads:[~2010-03-19 20:37 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 [this message]
2010-03-19 22:21   ` Colin Watson
2010-03-19 22:28     ` Carles Pina i Estany
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=20100319203523.GA7679@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.