how to modify a target segment?

Hello,

I am currently working on several projects where automatical changes in target segments are needed and I would like to perform them with the editor controller of the integration API. But I couldn't find any piece of code or explanation about segment changes?

The only clue I found (maybe!) is the ProcessSegmentPairs method which description in the documentation is minimal.

Can someone tell me how to process?

Many thanks

Sébastien

Parents
  • Hello Patrik, Romulus, SDL developers,

    I went a little further with my idea to alter target segments with the ProcessSegmentPairs method.

    I can use the target.clear() method to erase the content of the target segment but I was not able to insert any text in it. If I try to add a clone of the source, the sdlxliff gets broken because <mrk> tags get duplicated.

    and if I try to add the source subitems, I get an error each time that I'm trying to add an element in a collection which already exists.

    Am I doing something wrong here?

    Thanks for your help

    Sébastien

Reply
  • Hello Patrik, Romulus, SDL developers,

    I went a little further with my idea to alter target segments with the ProcessSegmentPairs method.

    I can use the target.clear() method to erase the content of the target segment but I was not able to insert any text in it. If I try to add a clone of the source, the sdlxliff gets broken because <mrk> tags get duplicated.

    and if I try to add the source subitems, I get an error each time that I'm trying to add an element in a collection which already exists.

    Am I doing something wrong here?

    Thanks for your help

    Sébastien

Children