[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Hello Sylvain, 2006/1/23, Sylvain Le Gall [EMAIL PROTECTED]: For a GTK2 program, i recommend to use codeset = Some UTF-8. Ok. I'll fix that. Do you use s_ and f_ in your GTK2 interface ? Partially, with a .glade file. If this the case, this functions should be evaluated after the parsing

[Demexp-dev] Another issue with ocaml-gettext --action merge

2006-01-24 Par sujet David MENTRE
Hello Sylvain, Yet another issue with your package! ;-) When my makefile do: $ ocaml-gettext --action merge --merge-pot po/demexp.pot po/fr.po The fr.po file is mangled. The file is encoded in UTF-8. It's original content is: #: gtk2-clnt/demexp_gladeui.glade:3762 msgid As delegate msgstr En

[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Hello Sylvain, I'm making progress, but more issues appear. :-) David MENTRE [EMAIL PROTECTED] writes: 2006/1/23, Sylvain Le Gall [EMAIL PROTECTED]: For a GTK2 program, i recommend to use codeset = Some UTF-8. Ok. I'll fix that. done. If you use a .glade file, use GettextStub.Native

[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Hello, Sylvain Le Gall [EMAIL PROTECTED] writes: Yes, using LANG=C when calling my program solves the issue. But for my autotests, I need to do that *from* the program. Do you see a way to set the locale from OCaml, for a given part of the code? Humm, there is a way, but it is C code and

[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Sylvain Le Gall [EMAIL PROTECTED] writes: I don't see any s_ or f_ in you code. Do you have any translatable string in your code ? There is one, see: demexp-gtk2-client.ml= let connect_to_server pref user_msg = let timer = Perf.timer_start () in user_msg (Printf.sprintf (f_ Connecting to

[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
David MENTRE [EMAIL PROTECTED] writes: Yes, using LANG=C when calling my program solves the issue. But for my autotests, I need to do that *from* the program. Do you see a way to set the locale from OCaml, for a given part of the code? Ok, I've found a work around, calling Printf.sprintf to

[Demexp-dev] [Sylvain Le Gall] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Answer of Sylvain. d. ---BeginMessage--- Hello, On Tue, Jan 24, 2006 at 07:52:16PM +0100, David MENTRE wrote: Hello Sylvain, I'm making progress, but more issues appear. :-) David MENTRE [EMAIL PROTECTED] writes: 2006/1/23, Sylvain Le Gall [EMAIL PROTECTED]: For a GTK2 program, i

[Demexp-dev] Re: Issue to use ocaml-gettext with lablgtk

2006-01-24 Par sujet David MENTRE
Sylvain, [ Could you keep demexp-dev in the Cc:? It allows archiving of emails for future people having same issue as me. ] Sylvain Le Gall [EMAIL PROTECTED] writes: For example, if at the end of a module I put: let _ = Printf.printf 1.0 = %3.3f\n 1.0 I get as result when launching