Exemplo n.º 1
0
 public RecordsSourceTuLanguageDirection(ITranslationProviderLanguageDirection languageDirection, ITranslationMemoryLanguageDirection tmlanguageDirection)
 {
     _fileBasedTranslationProviderLanguageDirection = languageDirection;
     _tmlanguageDirection      = tmlanguageDirection;
     _editorController         = GetEditorController();
     _editorController.Opened += _editorController_Opened;
 }
Exemplo n.º 2
0
        private void CopyTmLanguageResources(FileBasedTranslationMemory templateTm, FileBasedTranslationMemory tm)
        {
            ITranslationMemoryLanguageDirection languageDirection = tm.LanguageDirection;

            // Copy any sourcelanguage resources from the template tm to the new tm
            LanguageResourceBundle sourceLanguageBundle = templateTm.LanguageResourceBundles[languageDirection.SourceLanguage];

            if (sourceLanguageBundle != null)
            {
                tm.LanguageResourceBundles.Add(sourceLanguageBundle.Clone());
            }

            // Copy any target language resources from the template tm to the new tm
            LanguageResourceBundle targetLanguageBundle = templateTm.LanguageResourceBundles[languageDirection.TargetLanguage];

            if (targetLanguageBundle != null)
            {
                tm.LanguageResourceBundles.Add(targetLanguageBundle.Clone());
            }
        }
 public RecordsSourceTuLanguageDirection(ITranslationProviderLanguageDirection languageDirection, ITranslationMemoryLanguageDirection tmlanguageDirection)
 {
     _fileBasedTranslationProviderLanguageDirection = languageDirection;
     _tmlanguageDirection = tmlanguageDirection;
 }
Exemplo n.º 4
0
 public RecordsSourceTuLanguageDirection(ITranslationProviderLanguageDirection languageDirection, ITranslationMemoryLanguageDirection tmlanguageDirection)
 {
     _fileBasedTranslationProviderLanguageDirection = languageDirection;
     _tmLanguageDirection = tmlanguageDirection;
 }