public SdlxliffReader(SegmentBuilder segmentBuilder, ExportOptions exportOptions, List <AnalysisBand> analysisBands)
 {
     _segmentBuilder             = segmentBuilder;
     _exportOptions              = exportOptions;
     _analysisBands              = analysisBands;
     ConfirmationStatistics      = new ConfirmationStatistics();
     TranslationOriginStatistics = new TranslationOriginStatistics();
 }
示例#2
0
 public SdlxliffWriter(SegmentBuilder segmentBuilder,
                       ImportOptions importOptions, List <AnalysisBand> analysisBands)
 {
     _segmentBuilder             = segmentBuilder;
     _importOptions              = importOptions;
     _analysisBands              = analysisBands;
     ConfirmationStatistics      = new ConfirmationStatistics();
     TranslationOriginStatistics = new TranslationOriginStatistics();
 }
        public XliffContentWriter(Xliff xliff, SegmentBuilder segmentBuilder,
                                  ImportOptions importOptions, List <AnalysisBand> analysisBands, List <string> tagIds,
                                  bool importBackTranslations)
        {
            _xliff                  = xliff;
            _segmentBuilder         = segmentBuilder;
            _importOptions          = importOptions;
            _analysisBands          = analysisBands;
            _importBackTranslations = importBackTranslations;

            _segmentBuilder.ExistingTagIds = tagIds;

            Comments = _xliff.DocInfo.Comments ?? new Dictionary <string, List <IComment> >();
            ConfirmationStatistics      = new ConfirmationStatistics();
            TranslationOriginStatistics = new TranslationOriginStatistics();
        }
        internal XliffContentReader(string projectId, string documentId, string inputPath, string targetLanguage, bool ignoreTags, SegmentBuilder segmentBuilder,
                                    ExportOptions exportOptions, List <AnalysisBand> analysisBands)
        {
            _projectId      = projectId;
            _documentId     = documentId;
            _inputPath      = inputPath;
            _ignoreTags     = ignoreTags;
            _segmentBuilder = segmentBuilder;
            _contextIndex   = 0;

            _exportOptions = exportOptions;
            _analysisBands = analysisBands;


            TargetLanguage = new CultureInfo(targetLanguage);

            Xliff = new Xliff();
            ConfirmationStatistics      = new ConfirmationStatistics();
            TranslationOriginStatistics = new TranslationOriginStatistics();
        }