package gettext-stub

  1. Overview
  2. Docs
Internationalization using C gettext library (i18n)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

gettext-v0.4.2.tbz
sha256=8b672c7c521b8ac753c6a90925243cdd367dd5202e7c1e5d1a2507b11ad5d6a7
sha512=72bad53ce15ccc5113e4cfdc76b56c633926bb3702623964e006a99d21a758e7d47f0b9b67bebffe8b9a0c5f4d018cb7d4ae665568dfab52070ed355d5f9d31b

doc/gettext-stub/GettextStubCompat/index.html

Module GettextStubCompatSource

Low level interface to gettext C library.

  • author Sylvain Le Gall
Sourcetype lc =
  1. | LC_CTYPE
  2. | LC_NUMERIC
  3. | LC_TIME
  4. | LC_COLLATE
  5. | LC_MONETARY
  6. | LC_MESSAGES
  7. | LC_ALL
Sourceval setlocale : lc -> string -> string option

Set the current localization for the category

Sourceval gettext : string -> string

Look up MSGID in the current default message catalog for the current * LC_MESSAGES locale. If not found, returns MSGID itself (the default text).

Sourceval dgettext : string -> string -> string

Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES * locale.

Sourceval dcgettext : string -> string -> lc -> string

Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY * locale.

Sourceval ngettext : string -> string -> int -> string

Similar to `gettext' but select the plural form corresponding to the number * N.

Sourceval dngettext : string -> string -> string -> int -> string

Similar to `dgettext' but select the plural form corresponding to the number * N.

Sourceval dcngettext : string -> string -> string -> int -> lc -> string

Similar to `dcgettext' but select the plural form corresponding to the * number N.

Sourceval textdomain : string -> string option

Set the current default message catalog to DOMAINNAME.If DOMAINNAME is "", * reset to the default of "messages".

Sourceval get_textdomain : unit -> string option

Get the current default message catalog to DOMAINNAME.

Sourceval bindtextdomain : string -> string -> string option

Specify that the DOMAINNAME message catalog will be foundin DIRNAME rather * than in the system locale data base.

Sourceval bind_textdomain_codeset : string -> string -> string option

Specify the character encoding in which the messages from theDOMAINNAME * message catalog will be returned.