I use this code to read Sdlxliff files with c#:
IMultiFileConverter converter = _fileTypeManager.GetConverterToDefaultBilingual(filePath, filePath + "_.sdlxliff", null);
ContentProcessor contentProcessor = new ContentProcessor {SegmentList = new List<SegmentClass>()};
converter.AddBilingualProcessor(contentProcessor);
converter.Progress += converter_Progress;
converter.Parse();
When I read a translation unit with a comment as shown in segement 12, it gets truncated. The yellow part diesappears!
Does anybody know a other methode to parse sdlxliff files?
Generated Image Alt-Text
[edited by: Trados AI at 1:37 PM (GMT 0) on 5 Mar 2024]
