From 02fb0c3f8bb60d88998c8a8c7d090ecc864ed04c Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Sat, 18 Dec 2021 04:26:46 +0100 Subject: i18n: Add support for joining XML localization via itstool --- docs/markdown/i18n-module.md | 12 ++++++++++++ docs/markdown/snippets/i18n-itstool_join-added.md | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 docs/markdown/snippets/i18n-itstool_join-added.md (limited to 'docs') 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. -- cgit v1.1