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.extension/GettextTranslate/Open/index.html

Module GettextTranslate.Open

type u
val create : GettextTypes.t -> GettextTypes.filename -> (string -> string) -> u

create t filename recode : Create a translation table using filename as the mo file and recode as the encoding converter.

val translate : u -> bool -> string -> (string * int) option -> string

translate str (plural_form,number) tbl : translate the string str using tbl. It is possible that the operation modify tbl, so it is returned also. It is also possible to get the plural form of the translated string using plural_form and number.

OCaml

Innovation. Community. Security.