Add TMs under each language pair and not under 'All Language Pairs'

Hello,

With the API I would like to add the TMs under each language combination and not under the 'All Language Pairs'

Screenshot showing a section labeled 'Language Pairs' with a sub-section 'All Language Pairs' and two language combinations: 'English (United States) to German' and 'English (United States) to Italian'.

Any idea how to do this?

I've seen the following question but it got no replies in 3 years Slight smile

https://community.sdl.com/developers-more/developers/language-developers/f/sdk_qa/8281/adding-tms-on-the-language-pair-level

Thanks,

Pavlos



Generated Image Alt-Text
[edited by: RWS Community AI at 7:13 AM (GMT 0) on 15 Nov 2024]
Parents Reply
  •  

    Yes, you're partially right. It doesn't add the TM under the specific LP if you try to add a new one but it doesn't add it to All LPs either for me. It just replaces the one that's already under the specifc LP. But anyway, I've found what will probably fix the issue. 

    When getting the config of the TPs add the target language for which you wish to add the TM:

         var config = project.GetTranslationProviderConfiguration(targetLanguage);

    Also, if you're modifying a new project, which doesn't have any TMs added under a specific LP, add this:

        config.OverrideParent = true;

Children
No Data