diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2021-12-18 04:26:46 +0100 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2022-01-21 22:26:17 +0100 |
commit | 02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c (patch) | |
tree | d94965290f00c5d1a4173c274ca9575328a43624 /docs | |
parent | e60d358e0482edc56b6441aaa3021d83dd14b527 (diff) | |
download | meson-02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c.zip meson-02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c.tar.gz meson-02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c.tar.bz2 |
i18n: Add support for joining XML localization via itstool
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/i18n-module.md | 12 | ||||
-rw-r--r-- | docs/markdown/snippets/i18n-itstool_join-added.md | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/i18n-module.md b/docs/markdown/i18n-module.md index c0fba48..ba3eeb9 100644 --- a/docs/markdown/i18n-module.md +++ b/docs/markdown/i18n-module.md @@ -56,3 +56,15 @@ for normal keywords. In addition it accepts these keywords: * `args`: (*Added 0.51.0*) list of extra arguments to pass to `msgfmt` *Added 0.37.0* + +### i18n.itstool_join() + +This joins translations into a XML file using `itstool`. See +[[@custom_tgt]] +for normal keywords. In addition it accepts these keywords: + +* `its_files`: filenames of ITS files that should be used explicitly + (XML translation rules are autodetected otherwise). +* `mo_targets` *required*: mo file generation targets as returned by `i18n.gettext()`. + +*Added 0.61.0* diff --git a/docs/markdown/snippets/i18n-itstool_join-added.md b/docs/markdown/snippets/i18n-itstool_join-added.md new file mode 100644 index 0000000..53e8d61 --- /dev/null +++ b/docs/markdown/snippets/i18n-itstool_join-added.md @@ -0,0 +1,5 @@ +## Added support for XML translations using itstool + +XML files can now be translated easier by using `itstool` via +`i18n.itstool_join()`. This ensures the XML is translated correctly +based on the defined ITS rules for the specific XML layout. |