Exemple #1
0
        public static void SetTranslationService(IConnectionService connectionService)
        {
            TranslationService = new TranslationService(connectionService, Client, new MessageBoxService());

            //TODO: start supervising when a QE enabled model has been chosen

            MetadataSupervisor?.StartSupervising(TranslationService);
        }
Exemple #2
0
        public void Execute()
        {
            Client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

            if (IsStudioRunning())
            {
                ProjectsController  = SdlTradosStudio.Application.GetController <ProjectsController>();
                CurrentViewDetector = new CurrentViewDetector();
                EditorController    = SdlTradosStudio.Application.GetController <EditorController>();
                MetadataSupervisor  = new MetadataSupervisor(new SegmentMetadataCreator(), EditorController);
            }
        }