OCAML-GETTEXT(5) | [FIXME: manual] | OCAML-GETTEXT(5) |
ocaml-gettext - common options to manage internationalisation in OCaml program through ocaml-gettext library.
[--gettext-failsafe
[{ignore} | {inform-stderr} | {raise-exception}]]
[--gettext-disable]
[--gettext-domain-dir {textdomain} {dir}]
[--gettext-dir {dir}]
[--gettext-language {language}]
[--gettext-codeset {codeset}]
This section describes briefly the common options provided by programs using ocaml-gettext library.
--gettext-failsafe ignore
--gettext-failsafe inform-stderr
--gettext-failsafe raise-exception
--gettext-disable
--gettext-domain-dir textdomain dir
--gettext-dir dir
--gettext-language language
--gettext-codeset codeset
Users should be aware that these command line options, apply only for strings after the initialisation of the library. This means that if the options initially guessed by ocaml-gettext don't match the command line provided, there should be some untranslated string, because these strings are translated before parsing options. This is particularly true for the usage message itself (--help): even if the strings are translated, they are translated before setting the correct option.
Some options (--gettext-codeset for example) are overrided internally for particular use. It should be required to always translate strings to UTF-8 in graphical user interface (because GTK2 requires it).
2008-04-29 | ocaml-gettext |