You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create CDATA blocks instead of xml encoding the text?
This would be a bit nicer to read.
Example:
<trans-unit id="cart.vatId_needed" resname="cart.vatId_needed">
<source><![CDATA[A valid EU VAT ID is required for invoicing. Please store this in your user profile: <a class="btn btn-gray" href="%1$s">Edit Profile</a>]]></source>
vs
<trans-unit id="cart.vatId_needed" resname="cart.vatId_needed">
<source>A valid EU VAT ID is required for invoicing. Please store this in your user profile: <a class="btn btn-gray" href="%1$s">Edit Profile</a></source>
The text was updated successfully, but these errors were encountered:
I heard this before, unfortunately it is not a trivial task. t3ll uses the encoding/xmlpackage of the go stdlib, which does not support this, at least not currently. It either always uses CDATA or never, there is no direct way to do this conditionally, depending on the actual content.
Will keep the issue open in case I find a not-too-weird workaround to get this working.
I just installed your tool and use it via PhpStorm which works fine. Thanks! I stumbled upon the CDATA problem too and wonder if a solution could be:
(1) Add a checkbox field "CDATA" per row.
(2) On loading the Xliff file, set the state of the field according to the Xliff file.
(3) On saving to the Xliff file, compile the whole form once with CDATA and once without CDATA and per row pick the variant based on the checkbox.
I think, having CDATA support would be a great benefit, and compiling the form twice might be an effort that is worth it.
Is it possible to create CDATA blocks instead of xml encoding the text?
This would be a bit nicer to read.
Example:
vs
The text was updated successfully, but these errors were encountered: