On Thu, Jun 18, 2009 at 11:07 PM, Carles Pina i Estany <car...@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
for-carles). There is a possibility with minimal modification to copy
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

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

>
> (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

>
> --
> Carles Pina i Estany
>        http://pinux.info
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>



-- 
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to