Numbering the messages is a great idea, even if it is using Latin script. I don't know about education in Arabic countries, but in China learners generally learn math and arithmetic using Latin numbers as opposed to the Chinese script numbers (一, 二, 三, 四, etc) which is used in written text. So everyone is familiar with Latin scripting for numbers. Latin for error numbers would probably be fine. Richard W.M. Jones wrote: > I want to add that OCaml already has an excellent gettext implementation. > No need to reinvent any wheels. Thank you Richard. I will take a look at that. Tao Stein / 石涛 / تاو شتاين On 11 April 2017 at 22:18, Gabriel Scherer wrote: > > I find that it makes it considerably easier to search for error messages > > On this specific topic, I would be interested in having OCaml compiler > error messages numbered, just as warnings already are, precisely because it > makes it much easier to reference them (is robust to change of wording), > and for example look up a specific error in the manual for further > explanations -- we recently started doing this for warnings, see > http://caml.inria.fr/pub/docs/manual-ocaml/comp.html#sec270 . > > > > On Tue, Apr 11, 2017 at 10:05 AM, Richard W.M. Jones > wrote: > >> It looks like people have already mentioned getttext. >> >> I want to add that OCaml already has an excellent gettext >> implementation. No need to reinvent any wheels. >> >> https://forge.ocamlcore.org/projects/ocaml-gettext/ >> >> We use it every day in libguestfs, an example picked at random >> (there are thousands more): >> >> https://github.com/libguestfs/libguestfs/blob/master/v2v/inp >> ut_libvirt.ml#L39 >> >> Therefore you might think I'd be very exciting about having the OCaml >> compiler messages being localized. That not so much. I find that it >> makes it considerably easier to search for error messages, and also to >> help people, if they are in a single language. It's for this reason >> that we don't translate debugging and other internal messages in our >> tools. (But being an English native speaker it's a lot easier for me, >> so take this with a pinch of salt.) >> >> Rich. >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >> > >