package gettext

  1. Overview
  2. Docs
Internationalization library (i18n)

Install

Dune Dependency

Authors

Maintainers

Sources

gettext-v0.4.1.tbz
sha256=a80408ff891ed22b5be7e8a5331f4b31e7b50dea482bff56abe73457aa379e5f
sha512=574530a0c0822b7e1d5772f1c58db92bb52c742432666deb1cc2291fbe603250fa61263df033eb88769c8d7e8bcbbd728c91379d0a5377cfe6026d83a9222fb8

doc/gettext.base/Gettext/index.html

Module Gettext

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

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

module Library (Init : GettextTypes.INIT_TYPE) : sig ... end

Module to handle typical library requirement

module Program (Init : GettextTypes.INIT_TYPE) (Realize : sig ... end) : sig ... end

Module to handle typical program requirement

OCaml

Innovation. Community. Security.