package gettext
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a80408ff891ed22b5be7e8a5331f4b31e7b50dea482bff56abe73457aa379e5f
sha512=574530a0c0822b7e1d5772f1c58db92bb52c742432666deb1cc2291fbe603250fa61263df033eb88769c8d7e8bcbbd728c91379d0a5377cfe6026d83a9222fb8
doc/gettext.base/GettextCompat/index.html
Module GettextCompat
Gettext compatibility with the native gettext API
val textdomain : GettextTypes.textdomain -> GettextTypes.t -> GettextTypes.ttextdomain domain t Set the current text domain.
val get_textdomain : GettextTypes.t -> GettextTypes.textdomainget_textdomain t Returns the current text domain.
val bindtextdomain :
GettextTypes.textdomain ->
GettextTypes.dir ->
GettextTypes.t ->
GettextTypes.tbindtextdomain textdomain dir Set the default base directory for the specified domain.
val bind_textdomain_codeset :
GettextTypes.textdomain ->
GettextTypes.codeset ->
GettextTypes.t ->
GettextTypes.tbind_textdomain_codeset textdomain codeset Set the codeset to use for the specified domain. codeset must be a valid codeset for the underlying character encoder/decoder (iconv, camomile, extlib...)
val fgettext :
GettextTypes.t' ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6fgettext t' str gettext returning format.
val dgettext : GettextTypes.t' -> GettextTypes.textdomain -> string -> stringdgettext t' textdomain str Translate the string str for the specified domain.
val fdgettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6fdgettext t' textdomain str dgettext returning format.
val dcgettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
string ->
GettextCategory.category ->
stringdcgettext t' textdomain str category Translate the string str for the specified domain and category.
val fdcgettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
GettextCategory.category ->
('a, 'b, 'c, 'd, 'e, 'f) format6fdcgettext t' textdomain str category dcgettext returning format.
ngettext t' str str_plural n Translate the string str using a plural form. str_plural is the default english plural. n is the relevant number for plural (i.e. the number of objects deals with the string).
val fngettext :
GettextTypes.t' ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
('a, 'b, 'c, 'd, 'e, 'f) format6fngettext t' str str_plural n ngettext returning format.
val dngettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
string ->
string ->
int ->
stringdngettext t' textdomain str str_plural n Translate the string str using a plural form for the specified domain.
val fdngettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
('a, 'b, 'c, 'd, 'e, 'f) format6fdngettext t' textdomain str str_plural n dngettext returning format.
val dcngettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
string ->
string ->
int ->
GettextCategory.category ->
stringdcngettext t' textdomain str str_plural n category Translate the string str using a plural form for the specified domain and category.
val fdcngettext :
GettextTypes.t' ->
GettextTypes.textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
GettextCategory.category ->
('a, 'b, 'c, 'd, 'e, 'f) format6fdcngettext t' textdomain str str_plural n category dcngettext returning format.