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

Surrounding tags in target of a reimport of pretranslated content are not imported

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • None
    • Globalese integration

      Problem

      Assume a the following source segment (translation task, target is empty):

      <g>Das ist ein Test</g>

      Import such a segment, use globalese for pre-translation.

      In the first step the above segment is imported correctly into translate5, then its transferred to Globalese for pre-translation.

      From Globalese we get then:
      <source><g>Das ist ein Test</g></source>

      <target><g>This is a test</g></target>

      Since we use normal import routines for the pre-translated answer, the normal import routine recognizes that the <g> tag is surrounding source and target, therefore the tag is not imported into translate5s segment. It remains in the skeleton file for export only. 

      In the case of pre-translation the target (now without <g> tag) is merged into the segment from the first import (with <g> tag, since translation task, and no tags moved outside).

      solution

      In the case of reimport no tags should be "moved outside".

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: