trados2019、2021 bug

I had some issues with my plugin code on trados2019. When I added the translation plugin in the project Settings, clicking OK failed to trigger the CurrentProjectChanged event, 

Trados Studio 2019 interface showing project settings with a red box highlighting the OK button which fails to trigger the CurrentProjectChanged event.

my code:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public ITranslationProvider[] Browse(IWin32Window owner, LanguagePair[] languagePairs,
ITranslationProviderCredentialStore credentialStore)
{
string version = TradosUtils.GetStudioVersionFriendly(); // trados17.1.6
IOLTranslationOptions Options = new IOLTranslationOptions(MtTranslationProviderFactory.transnProviderUri);
var provider = new MtTranslationProvider(Options);
if (m_setForm != null)
{
//
m_setForm.Dispose();
m_setForm = null;
}
Logger.Debug("ITranslationProvider[] Browse");
var projectController = SdlTradosStudio.Application.GetController<ProjectsController>();
projectController.CurrentProjectChanged += (s, e) =>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In trados2022, when the plug-in is mounted, clicking OK (in red) will trigger CurrentProjectChanged event, but in trados2019, CurrentProjectChanged event will not be triggered. Due to the requirements of our project, I need to save some configurations by clicking OK (red box in the picture above), but it cannot be triggered, resulting in my configuration failing to be saved. Is there a solution.



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