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.extension/GettextRealize/Generic/argument-1-Translate/index.html

Parameter Generic.Translate

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.