How to update origin system for the TranslationUnit instance?

Hi all -

In the file editor in Trados, when the translation results are shown in the translation results pane, the name of the translation provider is shown. I'm writing a custom translation engine plugin, and I'm trying to figure out how to control the name of the translation provider. It's seeded from PluginResources.Plugin_NiceName, but it's not retrieved from the TranslationProviderDisplayInfo instance returned by GetDisplayInfo() in the WinForms UI class. It's serialized as the "origin-system" property in the translation unit item in the sdlxliff file, but it's not obvious how to change it; the TranslationUnit class has an Origin property which can be set (it's an enum indicating the type of the source that provided the translation), but there doesn't appear to be any way to access the name of the system to change it.

The reason I'm interested in this is that the plugin I'm building is a proxy for multiple MT engines, and I'd like to display the name of the proxied engine for each translation (especially in the case where more than one engine is eligible to provide a translation). I've modified GetDisplayInfo() to do this, but it's not being used in this case.

Thanks in advance for any pointers.

1 Replies Latest Replies: 7 Dec 2018 4:43 PM by Sam Bayer

Related