package gettext

  1. Overview
  2. Docs
Internationalization library (i18n)

Install

Dune Dependency

Authors

Maintainers

Sources

gettext-0.5.0.tbz
sha256=08dd9df55b2af1838e2312be4be942b4375dbc18c2aed0ca1924488750e34f5d
sha512=4a09eab6d6f0d6ec435ca3d70305e2f97cbcc04bea72f85efcf649a0ead2faa322a0b054eb953b719f6dea98fb08de32fc80b4cf967681465c5a51e335aaf8d4

doc/gettext.base/Gettext/index.html

Module GettextSource

Modules to use in libraries and programs.

  • author Sylvain Le Gall

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 :

Exception

Sourceval string_of_exception : exn -> string

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).

Sourcemodule Library (_ : GettextTypes.INIT_TYPE) : sig ... end

Module to handle typical library requirement

Sourcemodule Program (_ : GettextTypes.INIT_TYPE) (_ : sig ... end) : sig ... end

Module to handle typical program requirement

OCaml

Innovation. Community. Security.