ocaml-gettext reference manual

Sylvain Le Gall

This user manual is considered as a source code and is licensed under the GNU Lesser General Public License v2.1 with OCaml static compilation exception.

Revision History
Revision svn:revisionsvn:date

Table of Contents

1. Overview
What is ocaml-gettext?
How is ocaml-gettext related to gettext?
2. How to install ocaml-gettext
Using source
Debian distribution
Other distributions
3. Programming with ocaml-gettext
Overview
Makefile and source layout
Library
Program
Graphical user interface
4. Translating ocaml-gettext programs and libraries
5. Using ocaml-gettext programs
A. Tips and tricks
Adding gettext support without depending on ocaml-gettext
B. Links
C. Manpages
OCAML-GETTEXT — program to manage PO and MO files for OCaml source files.
OCAML-XGETTEXT — program to extract translatable strings from OCaml source file.
OCAML-GETTEXT — common options to manage internationalisation in OCaml program through ocaml-gettext library.

List of Tables

3.1. Characteristics of ocaml-gettext implementation.

List of Examples

3.1. Makefile for po
3.2. LINGUAS
3.3. POTFILES
3.4. Makefile
3.5. library.ml
3.6. libraryGettext.ml
3.7. program.ml
3.8. programGettext.ml
3.9. Output of program --help
3.10. program.xml : Docbook manpage
3.11. Makefile : Makefile for docbook manpage
3.12. gui.ml
3.13. ./program --gettext-dir ../build/share/locale --gettext-lang C --my-name Sylvain
3.14. ./program --gettext-dir ../build/share/locale --gettext-lang fr --my-name Sylvain
A.1. prog_gettext.ml