I want to add MT Enhanced Provider - Microsoft Translator to Trados via code programmatically

In the UI interface, It only has need to insert the Microsoft translator key, but in the MT Enchanced provider dll API, it has to deal with client ID and client Key. It is confusing and embarrassing. It seems a bug.

I don't know how to add the plugin to Trados and add credential, how to use with Traods via code API, it is a disaster and frustrating. 

Who has experience on that and can share your solution for me? Great thanks!

Screenshot of MT Enhanced using Microsoft Translator settings window with options to choose MT provider, enter Microsoft Translator Key, and checkboxes for saving credentials and using category ID.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class MtTranslationProviderWinFormsUI : ITranslationProviderWinFormsUI
{
private readonly Constants _constants = new Constants();
private Logger _logger = LogManager.GetCurrentClassLogger();
/// <summary>
/// Show the plug-in settings form when the user is adding the translation provider plug-in
/// through the GUI of SDL Trados Studio
/// </summary>
/// <param name="owner"></param>
/// <param name="languagePairs"></param>
/// <param name="credentialStore"></param>
/// <returns></returns>
private TranslationProviderCredential GetMyCredentials(ITranslationProviderCredentialStore credentialStore, string uri)
{
var myUri = new Uri(uri);
TranslationProviderCredential cred = null;
if (credentialStore.GetCredential(myUri) != null)
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX



Generated Image Alt-Text
[edited by: RWS Community AI at 12:49 PM (GMT 0) on 27 Mar 2025]