Verification plugin triggered when confirming a segment even if disabled

Hello,

I have developed a custom verification plugin for Trados Studio.

When I disable it in the project settings, it won't be triggered when pressing F8, which is expected and completely normal.

The problem is that confirming a segment triggers the verifications performed by that plugin even if the plugin is completely disabled (that is, unchecked in the Verification options node).

I am using Trados Studio 2024 SR1 18.1.3.6657

I cannot share the source code publicly or the plugin, but I can privately, please get in touch with me for that.

Thanks!

Kind regards,

Arturo

Parents
  • Hey  , This is a know bug and at the moment your only option is to implement your own mechanism to check if the project is disabled.

    Here is an example of how you could accomplish this, let me know how it goes.

    var extensionPoint = PluginManager.DefaultPluginRegistry.GetExtensionPoint<TranslationProviderFactoryAttribute>();
    if (extensionPoint == null)
    {
    	return;
    }
    foreach (var extension in extensionPoint.Extensions)
    {
    	// 1. identify if the extension is a provider of interest to you
    	// from here you can identify the type
    	// extension.ExtensionType == etc..
    	// extension.Plugin.Id == etc...
    	
    	// 2. identify if the provider is enabled; this should already solve yr problem
    	if (extension.Enabled)
    	{
    	   // do something
    	}
    } 

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

Reply
  • Hey  , This is a know bug and at the moment your only option is to implement your own mechanism to check if the project is disabled.

    Here is an example of how you could accomplish this, let me know how it goes.

    var extensionPoint = PluginManager.DefaultPluginRegistry.GetExtensionPoint<TranslationProviderFactoryAttribute>();
    if (extensionPoint == null)
    {
    	return;
    }
    foreach (var extension in extensionPoint.Extensions)
    {
    	// 1. identify if the extension is a provider of interest to you
    	// from here you can identify the type
    	// extension.ExtensionType == etc..
    	// extension.Plugin.Id == etc...
    	
    	// 2. identify if the provider is enabled; this should already solve yr problem
    	if (extension.Enabled)
    	{
    	   // do something
    	}
    } 

    Patrick Andrew Hartnett | Developer Experience | Team Lead | RWS Group

Children
No Data