From bugzilla-daemon@bugs.koha-community.org Sat Mar 7 19:50:25 2026 From: bugzilla-daemon@bugs.koha-community.org To: koha-bugs@lists.koha-community.org Subject: [Koha-bugs] [Bug 8937] Translation process removes CDATA in RSS XML Date: Sat, 07 Mar 2026 18:50:18 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5603582379927089060==" --===============5603582379927089060== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8937 David Nind changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #194812|0 |1 is obsolete| | --- Comment #16 from David Nind --- Created attachment 194933 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194933&action=edit Bug 8937: Translation process removes CDATA in RSS XML During template translation, CDATA sections in RSS templates are not handled consistently. When parsing RSS content containing Template Toolkit directives inside CDATA blocks, the CDATA markers () are only preserved only for the tag. To reproduce 1. Install the other language (i used fr-CA here) 1.1. gulp po:update --lang fr-CA 1.2. /misc/translator/translate install fr-CA 2. open and compare files that contain <!CDATA in description example: ./koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt ./koha-tmpl/opac-tmpl/bootstrap/fr-CA/modules/opac-opensearch.tt 3. In the fr-CA file the description tag ==> the <![CDATA is removed 3. Apply the patch 4. Repeat step 1.2, 2 and 3 ==> the <![CDATA is not removed Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes. --===============5603582379927089060==--