Translation Memory Updates - changing the settings

How do I change the settings for translation memory updates through the API? See the attachment for the dialogue I'm referring to. In Trados, you get there by selecting the project, right click, Batch Tasks > Update Main Translation Memories > click next until you come to Settings.


There's some samples on

http://producthelp.sdl.com/SDK/ProjectAutomationApi/3.0/html/29374aca-0a1f-49d1-bcb9-021fb3996575.htm

but it doesn't refer to these settings. For example, the AlwaysAddNewTranslation property is not available, see attachment.

Parents Reply
  • 
    

    Hi Karl,

    Try the following

    updateTMSettings.GetSetting<string>("TmImportOptions").Value = "KeepMostRecentTranslation";
    settings.UpdateSettings(updateTMSettings);

     Here are the options:

    KeepMostRecentTranslation
    LeaveUnchangedTranslation
    OverwriteExistingTranslation

    I think for the top setting, Merge Translations is the default, so you would leave it blank.

    Sorry I'm using Trados 2014 right now so I cannot see the settings for 2015, to find out all the settings for 2015 looks in the project file for the following XML when you change the settings:

    <SettingsGroup Id="TranslationMemoryUpdateTaskSettings">
      <Setting Id="TmImportOptions">KeepMostRecentTranslation</Setting>
    </SettingsGroup>

     

Children