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();
 }
        internal ContentReader(string projectId, string inputPath, bool ignoreTags, SegmentBuilder segmentBuilder,
                               ExportOptions exportOptions, List <AnalysisBand> analysisBands)
        {
            _projectId      = projectId;
            _inputPath      = inputPath;
            _ignoreTags     = ignoreTags;
            _segmentBuilder = segmentBuilder;

            _exportOptions = exportOptions;
            _analysisBands = analysisBands;

            Xliff = new Xliff();
            ConfirmationStatistics      = new ConfirmationStatistics();
            TranslationOriginStatistics = new TranslationOriginStatistics();
        }
        public ContentWriter(Xliff xliff, SegmentBuilder segmentBuilder,
                             ImportOptions importOptions, List <AnalysisBand> analysisBands)
        {
            _xliff          = xliff;
            _segmentBuilder = segmentBuilder;
            _importOptions  = importOptions;
            _analysisBands  = analysisBands;

            _segmentBuilder.ExistingTagPairIds     = _xliff.TagPairIds;
            _segmentBuilder.ExistingPlaceholderIds = _xliff.PlaceholderIds;

            Comments = _xliff.DocInfo.Comments;
            ConfirmationStatistics      = new ConfirmationStatistics();
            TranslationOriginStatistics = new TranslationOriginStatistics();
        }
示例#5
0
        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();
        }
示例#6
0
        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();
        }