Example #1
0
        private void Translate()
        {
            var langdir = _mtProvider.GetLanguageDirection(new Sdl.LanguagePlatform.Core.LanguagePair("en", "lv"));
            var res     = langdir.SearchText(null, Source);

            _syncContext.Post(o => {
                Translation = res.First().TranslationProposal.TargetSegment.ToString();
            }, null);
        }
        public ITranslationProviderLanguageDirection GetLanguageDirection(LanguagePair languagePair)
        {
            var languageDirection = _fileBasedTranslationProvider.GetLanguageDirection(languagePair);

            return(new AddSourceTmLanguageDirection(languageDirection));
        }
        public ITranslationProviderLanguageDirection GetLanguageDirection(LanguagePair languagePair)
        {
            var languageDirection = _fileBasedTranslationProvider.GetLanguageDirection(languagePair);

            return(new RecordsSourceTuLanguageDirection(languageDirection, FileBasedTranslationMemory.LanguageDirection));
        }