demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Demexp-dev] [Sylvain Le Gall] Re: Issue to execute example of ocaml-get


From: David MENTRE
Subject: [Demexp-dev] [Sylvain Le Gall] Re: Issue to execute example of ocaml-gettext
Date: Mon, 16 Jan 2006 18:28:09 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Another response of Sylvain. I ran into another bug. ;)

d.

--- Begin Message --- Subject: Re: Issue to execute example of ocaml-gettext Date: Mon, 16 Jan 2006 01:36:14 +0100 User-agent: Mutt/1.5.11
Hello,

On Sat, Jan 14, 2006 at 06:15:42PM +0100, David MENTRE wrote:
> Hello Sylvain,
> 
> I have successfully compiled and ran test of ocaml-gettext, without any
> failure. However I am unable to observe translation behaviour on the
> example program.
> 
> I compile the program as follow (I don't think the error at the end is
> an issue):
> address@hidden:~/00-poubelle/ocaml-gettext-0.2.0/examples$ make
> mkdir build
> cd library && make all
> make[1]: Entering directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/library'
> ocamlfind ocamlc -package gettext.base -a -o library.cma libraryGettext.ml 
> library.ml
> make[1]: Leaving directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/library'
> cd gui     && make all
> make[1]: Entering directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/gui'
> ocamlfind ocamlc -package "gettext.base lablgtk2" -a -o gui.cma guiGettext.ml 
> gui.ml
> make[1]: Leaving directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/gui'
> cd program && make all
> make[1]: Entering directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/program'
> ocamlfind ocamlc -package "gettext-camomile lablgtk2.init" -linkpkg \
>   -I ../library -I ../gui -o program library.cma gui.cma programGettext.ml 
> program.ml
> make[1]: Leaving directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/program'
> cd po      && make all
> make[1]: Entering directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/po'
> ocaml-gettext --action compile     \
> --compile-output fr.mo fr.po
> mkdir -p ../build/share/locale/
> ocaml-gettext --action install     \
> --install-textdomain mydomain                         \
> --install-destdir ../build/share/locale/ fr.mo
> make[1]: Leaving directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/po'
> cd doc     && make all
> make[1]: Entering directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/doc'
> xmllint --xinclude --noent --noout --postvalid program.xml
> make[1]: xmllint : commande introuvable
> make[1]: *** [program.1] Erreur 127
> make[1]: Leaving directory 
> `/home/david/00-poubelle/ocaml-gettext-0.2.0/examples/doc'
> make: *** [all] Erreur 2
> 
> Then, I run "program" as follow:
> address@hidden:~/00-poubelle/ocaml-gettext-0.2.0/examples/program$ echo $LANG
> fr_FR.UTF-8
> address@hidden:~/00-poubelle/ocaml-gettext-0.2.0/examples/program$ ./program 
> --gettext-dir ../build/share/ --gettext-language fr --my-name David
> Hello David
> 
> If I give ../build/share/locale/ as directory, I get exception
> Not_found:
> address@hidden:~/00-poubelle/ocaml-gettext-0.2.0/examples/program$ ./program 
> --gettext-dir ../build/share/locale/ --gettext-language fr --my-name David
> Fatal error: exception Not_found
> 
> 

I think the example use the camomile binding for translation. As i have
told you in my previous mail, i have a nasty bug with it: there is a
mismatch between ISO8859-1 and ISO-8859-1 (only one is recognized by
camomile, and i think it is not the good one).

I will try to fix this in my next upload.

Kind regard
Sylvain Le Gall


--- End Message ---

-- 
 address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]