]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgfmt: New option --replace-text.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Oct 2024 07:43:43 +0000 (09:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Oct 2024 07:43:43 +0000 (09:43 +0200)
commit7d975b67084a329a68484d23e51819b1501f6d7f
treea1aae397eb9a9803bf9efad310c38e218911f65d
parent91ab260ba339602cb3b1716d7dfcf0032be21dcd
msgfmt: New option --replace-text.

Reported by Asterix <asterix@lagaule.org>
at <https://savannah.gnu.org/bugs/?52159>.

* gettext-tools/src/its.h (its_merge_context_merge): Add parameter replace_text.
* gettext-tools/src/its.c (its_merge_context_merge_node): Add parameter
replace_text.
(its_merge_context_merge): Likewise.
* gettext-tools/src/write-xml.h (msgdomain_write_xml, msgdomain_write_xml_bulk):
Add parameter replace_text.
* gettext-tools/src/write-xml.c (msgdomain_write_xml_bulk): Add parameter
replace_text.
(msgdomain_write_xml): Likewise.
* gettext-tools/src/msgfmt.c (xml_replace_text): New variable.
(long_options): Add --replace-text.
(main): Handle --replace-text.
(usage): Document option --replace-text.
* gettext-tools/tests/msgfmt-xml-4: New file, based on
gettext-tools/tests/msgfmt-xml-1.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
* gettext-tools/doc/msgfmt.texi: Document option --replace-text.
* NEWS: Mention the change.
NEWS
gettext-tools/doc/msgfmt.texi
gettext-tools/src/its.c
gettext-tools/src/its.h
gettext-tools/src/msgfmt.c
gettext-tools/src/write-xml.c
gettext-tools/src/write-xml.h
gettext-tools/tests/Makefile.am
gettext-tools/tests/msgfmt-xml-4 [new file with mode: 0755]