From: Carles Pina i Estany <carles@pina.cat>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Fw: gettext support
Date: Sat, 20 Jun 2009 00:13:36 +0100 [thread overview]
Message-ID: <20090619231336.GC7064@pina.cat> (raw)
In-Reply-To: <d7ead6de0906191022k75e2d8b1y6c97db5561873438@mail.gmail.com>
Hi,
On Jun/19/2009, Vladimir 'phcoder' Serbinenko wrote:
> On Thu, Jun 18, 2009 at 11:07 PM, Carles Pina i Estany <carles@pina.cat>wrote:
>
> >
> > Hi,
> >
> > On Jun/18/2009, Vladimir 'phcoder' Serbinenko wrote:
> >
> > > If you want I'll add compilation po to mo to build system.
> >
> > this would be very nice and speed up the process :-)
> >
> > As it's written in the TODO in grub/po, we need:
> >
> > -Compile all .po to .mo (msgfmt $LANG.po -o $LANG.mo) (during the make
> > of Grub?)
> >
> > -Copy to /usr/share/locale/$LANG/LC_MESSAGES/grub.mo (or
> > /usr/local/share/locale/$LANG/LC_MESSAGES/..., so $prefix...)
> > ((Well, now with the last changes I suggest to copy *.mo to
> > $prefix/locale/ :-) ))
>
> In my git repository you can find a possible way how to do it (branch
Could you send the details of your git repository? (I don't have it
handy)
> for-carles). There is a possibility with minimal modification to copy
thanks :-)
> languages to both ls /usr/local/lib/grub/<platform>/ and $prefix like it's
> the case with modules. It still needs work because I haven't updated non
> i386-pc scripts yet and because putting to lib/grub/platform is
> inappropriate. But you can already get the idea Would it be ok if it will go
> to /usr/local/share/grub and $prefix/locale ? Can you make gettext in
> utilities to use /usr/local/share/grub/$LANG.mo
As far as I remember, gettext utilities uses a shell variable to search
for the .mo file (or to the directory where the .mo file is located). So
yes, we could test if /usr/locale/share/grub exists and failback to
/usr/share/locale/grub, etc.
(I can do something like this during the weekend)
> > -Make uptrans should execute:
> > uptrans:
> > xgettext -k_ -LC -o - `find "$(srcdir)/" -name '*.c'` -o po/grub.pot
> > xgettext -k_ -Lshell -o - $(GRUBD)/* -j -o po/grub.pot
> >
> This will need to be adjusted to use DISTLIST
I leave it to you since I'm not familiar with DISTLIST, etc.
> > (first line generates the new po template from the *.c files and otehr
> > one from the grub.d scripts)
> >
> > Then we have other things to do, like be sure that the scripts that
> > generates grub.cfg are using the appropiate location of the files. For
> > example, 10_linux.d is using $eval_gettext, and the system has the
> > grub-gettext_lib.in that setups some paths and includes gettext.sh (this
> > is a generic script that comes with gettext-base package).
> >
> > Maybe we can, now (next days) add gettext support in Grub booting time
> > and then to the scripts?
> >
> Works for me
ok. I think that adding Gettext to Grub is not a very BIG patch itself,
but it touches many places (Grub itself, Scripts, building system) that
makes difficult to prepare only one patch for everything.
--
Carles Pina i Estany
http://pinux.info
next prev parent reply other threads:[~2009-06-19 23:13 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-16 21:47 Fw: gettext support Carles Pina i Estany
2009-06-16 22:37 ` Vladimir 'phcoder' Serbinenko
2009-06-17 11:37 ` Vladimir 'phcoder' Serbinenko
2009-06-17 20:29 ` Carles Pina i Estany
2009-06-18 13:38 ` Robert Millan
2009-06-18 14:45 ` Vladimir 'phcoder' Serbinenko
2009-06-18 21:07 ` Carles Pina i Estany
2009-06-19 17:22 ` Vladimir 'phcoder' Serbinenko
2009-06-19 23:13 ` Carles Pina i Estany [this message]
2009-06-20 0:17 ` Vladimir 'phcoder' Serbinenko
2009-06-19 10:32 ` Robert Millan
2009-06-18 19:30 ` Carles Pina i Estany
2009-06-18 20:56 ` Carles Pina i Estany
2009-06-19 10:37 ` Robert Millan
2009-06-19 10:42 ` Vladimir 'phcoder' Serbinenko
2009-06-21 11:07 ` Robert Millan
2009-06-21 17:22 ` Carles Pina i Estany
2009-06-21 18:42 ` Robert Millan
2009-06-21 19:14 ` Pavel Roskin
2009-06-21 21:09 ` Carles Pina i Estany
2009-06-21 21:18 ` Robert Millan
2009-06-21 21:28 ` Carles Pina i Estany
2009-06-21 22:03 ` Vladimir 'phcoder' Serbinenko
2009-06-21 22:31 ` Carles Pina i Estany
2009-06-21 22:47 ` Robert Millan
2009-06-21 22:56 ` Colin Watson
2009-06-22 19:03 ` Jordi Mallach
2009-06-22 19:42 ` Javier Martín
2009-06-23 10:05 ` Jordi Mallach
2009-06-23 10:45 ` Javier Martín
2009-06-24 9:17 ` Jordi Mallach
2009-06-21 21:20 ` Vladimir 'phcoder' Serbinenko
2009-06-21 23:42 ` Pavel Roskin
2009-06-22 9:39 ` Robert Millan
2009-06-22 10:16 ` Colin Watson
2009-06-21 21:14 ` Robert Millan
2009-06-25 21:20 ` Carles Pina i Estany
2009-06-26 3:09 ` Pavel Roskin
2009-06-26 12:47 ` Robert Millan
2009-06-26 15:31 ` Pavel Roskin
2009-06-26 23:42 ` Carles Pina i Estany
2009-06-19 13:55 ` Jordi Mallach
2009-06-19 14:32 ` Vladimir 'phcoder' Serbinenko
2009-06-21 11:17 ` Robert Millan
2009-06-19 23:08 ` Carles Pina i Estany
2009-06-21 11:09 ` Robert Millan
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=20090619231336.GC7064@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.