]> git.ipfire.org Git - thirdparty/gettext.git/commit
its: Fix the value of the xml:lang attribute inserted by msgfmt.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Oct 2024 20:34:14 +0000 (22:34 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Oct 2024 20:34:14 +0000 (22:34 +0200)
commit446241c7cabb9b5de52c63248aa2574ce1acb388
treef3b81d0cd3285863bdf68a571d9772464a1e9fa6
parent5e2f6b9e143805f8efce89f170d6a912ef1bd0a8
its: Fix the value of the xml:lang attribute inserted by msgfmt.

Reported by Matthias Klumpp <matthias@tenstral.net>
at <https://savannah.gnu.org/bugs/?64025>.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add bcp47.
* gettext-tools/src/its.c: Include "bcp47.h".
(its_merge_context_merge_node): Convert the language / locale name to BCP 47
syntax before storing it in the xml:lang attribute.
* gettext-tools/tests/msgfmt-xml-3: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* NEWS: Mention the change.
NEWS
autogen.sh
gettext-tools/src/its.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/msgfmt-xml-3 [new file with mode: 0755]