package gettext
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=08dd9df55b2af1838e2312be4be942b4375dbc18c2aed0ca1924488750e34f5d
sha512=4a09eab6d6f0d6ec435ca3d70305e2f97cbcc04bea72f85efcf649a0ead2faa322a0b054eb953b719f6dea98fb08de32fc80b4cf967681465c5a51e335aaf8d4
doc/gettext.base/Gettext/index.html
Module Gettext
Source
Modules to use in libraries and programs.
This module defines all the function required to use gettext. The primary design is to use applicative function. The "side effect" of such a choice is that you must defines, before using any function, all the text domains, codeset et al. When building a library, you should give access to Library.init
(by defining a gettext_init = YouLibrary.init
). This is required to enable string translation in the library and programs that uses the library. The only function missing here is the realize
function. This function is defined in a real implementation library :
GettextDummy
GettextCamomile
GettextStub
Exception
Return the string representation of a ocaml-gettext exception.
High level interfaces
Value of the dependencies for the initialization of the library Gettext (for translating exception and help message).
Module to handle typical library requirement
Module to handle typical program requirement