OCAML-GETTEXT(1) | [FIXME: manual] | OCAML-GETTEXT(1) |
ocaml-gettext - program to manage PO and MO files for OCaml source files.
ocaml-gettext --action
[extract | compile | install | uninstall | merge]
[--extract-command {cmd}]
[--extract-default-option {options}]
[--extract-filename-option {filename} {options}]
[--extract-pot {filename}]
[--compile-output {filename}]
[--install-language {language}]
[--install-category {category}]
[--install-textdomain {textdomain}]
[--install-destdir {dirname}]
[--uninstall-language {language}]
[--uninstall-category {category}]
[--uninstall-textdomain {textdomain}]
[--uninstall-orgdir {dirname}]
{--merge-pot {filename}}
[--merge-backup-extension {extension}]
[--gettext-failsafe
[{ignore} | {inform-stderr} | {raise-exception}]]
[--gettext-disable]
[--gettext-domain-dir {textdomain} {dir}]
[--gettext-dir {dir}]
[--gettext-language {language}]
[--gettext-codeset {codeset}]
[--version | --short-version | -help | --help]
[file...]
This manual page documents briefly the ocaml-gettext command.
--action extract
--action compile
--action install
--action uninstall
--action merge
--extract-command cmd
--extract-default-option options
--extract-filename-option filename options
--extract-pot filename
--compile-output filename
--install-language language
--install-category category
--install-textdomain textdomain
--install-destdir dirname
--uninstall-language language
--uninstall-category category
--uninstall-textdomain textdomain
--uninstall-orgdir dirname
--merge-pot filename
--merge-backup-extension extension
--version
--short-version
-help, --help
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).
Options --uninstall-language, --uninstall-textdomain, --install-language and --install-textdomain could be guessed from the filename provided. You must be aware that these options can conflict with the fact that you provide several files to install. For example, if you provide a textdomain, you should either install several MO files which filenames only reflect the language or only one MO file if you also provide a language. For example, you can execute ocaml-gettext --install-textdomain mytextdomain fr.po de.po without problem, but you cannot execute ocaml-gettext --install-textdomain mytextdomain --install-language fr fr.po de.po . This restriction is due to the fact that you should not over specified file installation.
Rules for guessing the language/textdomain are: language[.textdomain].mo. For a full automated install without giving any hints, through command line options, you should name your file fr.mytextdomain.mo or de.mytextdomain.mo.
2008-04-29 | ocaml-gettext |