Translate as single document - Language pairs include language pairs from previous project too

Hello,

I am translating a single document.

I choose one target language for example Japanese.

In our  plugin we are trying to get the selected language pairs from Trados.

Sdl.LanguagePlatform.Core.LanguagePair[] languagePairs this variable has selected language pairs from SystranTranslationProviderConfDialog.

Ideally it should have only one language pair which is English --> Japanese but it has language pairs from previous project too.

 If I click on 'Advanced' it takes me to 'Project Template Settings - Default' when I click on 'Language Pairs' option in the left panel I see language pairs selected in the previous project along with one selected from dropdown as shown below. I guess these are the same language pairs from languagePairs api. So user needs to delete these language profiles and keep required one English --> Japanese. I want to avoid this manual action where user needs to delete language pairs. In our plugin we show profiles based  on language pairs mentioned in languagePairs api. 

Trados Studio Project Template Settings showing multiple language pairs including English to Japanese and others from previous projects.

I was wondering if there is API which gives me the only language which is selected from dropdown in 'Single document translation'. For example in case below, it will be English --> Japanese. 

Trados Studio Translation Memory and Document Settings dialog with Source Language set to English (United States) and Target Language set to Automated Translation.

Is there any API which indicates if it is project or 'Single document translation' in SDL?

Thanks,

Kaivalya



Generated Image Alt-Text
[edited by: Trados AI at 1:24 PM (GMT 0) on 5 Mar 2024]