How to modify a segment in SDLXLIFF File

Dear community developers

I know the method which looping through the segments and get the segment pairs of the sdlxliff file, but how can i modify the target segment ? and i know EditorControllor  works, 

But it seems to be using the activeDoument and other UI Controls, i want to modify the segment through the sdlxiff file with some api solution such as bath task. Which method can i use.

Thank you.

Best,

Bradley

Parents Reply
  • Dear Jesse

    Thank you very much for your answers, and i have already read the article which you show me. but there is a question that how i use the class which inherit the AbstractFileContentProcessingAutomaticTask? and here is the code  for example:

        public class TranslateTask : AbstractFileContentProcessingAutomaticTask
        {
            protected override void ConfigureConverter(ProjectFile projectFile, IMultiFileConverter multiFileConverter)
            {
    		multiFileConverter.AddBilingualProcessor(new SegmentProcessor());
            }
        }

    How i use the TranslateTask? 

Children