diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-21 01:37:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 01:37:18 +0300 |
commit | 6fab0430beafed684283468c157ee1f90c8c533d (patch) | |
tree | d95b2f4df3bc8c5923dc0e549a5ce2ac0c0d94b5 /docs/markdown/i18n-module.md | |
parent | 511a37085647ffbc45c8f8b7c408ef7898fb998d (diff) | |
parent | 9b5a5c2e61b3eda633acbe859b0e40e9597dac25 (diff) | |
download | meson-6fab0430beafed684283468c157ee1f90c8c533d.zip meson-6fab0430beafed684283468c157ee1f90c8c533d.tar.gz meson-6fab0430beafed684283468c157ee1f90c8c533d.tar.bz2 |
Merge pull request #2224 from mesonbuild/morealpha
More doc alphabetisation
Diffstat (limited to 'docs/markdown/i18n-module.md')
-rw-r--r-- | docs/markdown/i18n-module.md | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/docs/markdown/i18n-module.md b/docs/markdown/i18n-module.md index 172f73e..5e6004a 100644 --- a/docs/markdown/i18n-module.md +++ b/docs/markdown/i18n-module.md @@ -4,16 +4,33 @@ This module provides internationalisation and localisation functionality. ## Usage -To use this module, just do: **`i18n = import('i18n')`**. The following functions will then be available as methods on the object with the name `i18n`. You can, of course, replace the name `i18n` with anything else. +To use this module, just do: **`i18n = import('i18n')`**. The +following functions will then be available as methods on the object +with the name `i18n`. You can, of course, replace the name `i18n` with +anything else. ### i18n.gettext() -Sets up gettext localisation so that translations are built and placed into their proper locations during install. Takes one positional argument which is the name of the gettext module. +Sets up gettext localisation so that translations are built and placed +into their proper locations during install. Takes one positional +argument which is the name of the gettext module. -* `languages`: list of languages that are to be generated. As of 0.37.0 this is optional and the [LINGUAS](https://www.gnu.org/software/gettext/manual/html_node/po_002fLINGUAS.html) file is read. -* `data_dirs`: (*Added 0.36.0*) list of directories to be set for `GETTEXTDATADIRS` env var (Requires gettext 0.19.8+), used for local its files -* `preset`: (*Added 0.37.0*) name of a preset list of arguments, current option is `'glib'`, see [source](https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/i18n.py) for for their value -* `args`: list of extra arguments to pass to `xgettext` when generating the pot file +* `args`: list of extra arguments to pass to `xgettext` when + generating the pot file + +* `data_dirs`: (*Added 0.36.0*) list of directories to be set for + `GETTEXTDATADIRS` env var (Requires gettext 0.19.8+), used for local + its files + +* `languages`: list of languages that are to be generated. As of + 0.37.0 this is optional and the + [LINGUAS](https://www.gnu.org/software/gettext/manual/html_node/po_002fLINGUAS.html) + file is read. + +* `preset`: (*Added 0.37.0*) name of a preset list of arguments, + current option is `'glib'`, see + [source](https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/i18n.py) + for for their value This function also defines targets for maintainers to use: **Note**: These output to the source directory @@ -24,10 +41,13 @@ This function also defines targets for maintainers to use: ### i18n.merge_file() -This merges translations into a text file using `msgfmt`. See [custom_target](https://github.com/mesonbuild/meson/wiki/Reference%20manual#custom_target) for normal keywords. In addition it accepts these keywords: +This merges translations into a text file using `msgfmt`. See +[custom_target](https://github.com/mesonbuild/meson/wiki/Reference%20manual#custom_target) +for normal keywords. In addition it accepts these keywords: +* `data_dirs`: (*Added 0.41.0*) list of directories for its files (See + also `i18n.gettext()`) * `po_dir`: directory containing translations, relative to current directory -* `data_dirs`: (*Added 0.41.0*) list of directories for its files (See also `i18n.gettext()`) * `type`: type of file, valid options are `'xml'` (default) and `'desktop'` *Added 0.37.0* |