Ocaml-gettext is a close cousin of gettext. In fact, the API is based on gettext. Almost everything in ocaml-gettext is compatible with gettext:
functions provided in the API are very close to the gettext one,
the library contains a binding of the gettext library,
all the file used are gettext compatible: the library uses PO file for translator and MO file for translation,
the library tries to use the same initialisation sequence as gettext : it uses the same environment variable, tries to find MO files in the same places...
This documentation will not covered the point that are better explained in the gettext documentation. It is highly recommended to read this documentation, before reading this manual. Most of the point that are explained there are not explained again here. However, we have tried to be as precise as possible to enable programming with ocaml-gettext without having the need to be a gettext expert.