Trados 2019 bug... maybe?

Hi,

I don't know who posted this, but they found an oversight in the community and managed to post this as a wiki!  I can't see who did it, so I've removed the wiki and put it here.  Whoever posted it, please note it's here ;-)

====================

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, 

Screenshot of Trados Studio interface showing project settings with a red box highlighting the 'OK' button, indicating an issue where clicking 'OK' does not trigger the CurrentProjectChanged event in Trados 2019.

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:42 PM (GMT 0) on 5 Mar 2024]

Paul Filkin | RWS Group

________________________
Design your own training!

You've done the courses and still need to go a little further, or still not clear? 
Tell us what you need in our Community Solutions Hub