Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3957

SDLXLIFF diff export struggles when there are entities in the raw content

XMLWordPrintable

    • Critical
    • SDLXLIFF diff export does not export XML entities correctly

      problem

      On SegmentWorkflowTest I added to the there used T BX file the term "Installation".

      This led to a changes.xliff (generated on review workflow step finish) with invalid XML inside.

      The testcase contains segments with XML entities < > and & properly encoded.

      As soon as this segment contains terminology (added by adding the term Installation) the exported segment was invalid XML since the entities were decoded.

      This is done by the last return in \editor_Models_Export_FileParser_Sdlxliff_TrackChangesFormatter::toSdlxliffFormat method.

      solution

      • Apply a fix here, so that the entities are not encoded anymore (or only the right entities).
      • Add to the SdlxliffTest content some XML entities in the content to test correct entity behaviour

            sanya@mittagqi.com Sanya Mikhliaiev
            tlauria Thomas Lauria
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: