aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-01-22 01:01:29 +0200
committerGitHub <noreply@github.com>2022-01-22 01:01:29 +0200
commit4316b71017e1f4ca0d3d65f675e6cdceb3330d97 (patch)
tree69070743b7a206aaa11947f31cfec70762f3de97 /docs
parent2a992526045b702a8ab72968c98fef9f9e189d2b (diff)
parent02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c (diff)
downloadmeson-4316b71017e1f4ca0d3d65f675e6cdceb3330d97.zip
meson-4316b71017e1f4ca0d3d65f675e6cdceb3330d97.tar.gz
meson-4316b71017e1f4ca0d3d65f675e6cdceb3330d97.tar.bz2
Merge pull request #9742 from ximion/wip/itstool
i18n: Add support for joining XML localization via itstool
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/i18n-module.md12
-rw-r--r--docs/markdown/snippets/i18n-itstool_join-added.md5
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.