Accessing SDL WorldServer TMs in the Concordance Search

Hi everyone,

I have a plugin which extends the concordance search function. It is iterating through the entries of the TranslationProviderConfiguration of the current project and start a concordance search on each of the translation providers.

So far, I have only had a mix of file-based and Groupshare TMs, for which I respectively use the FileBasedTranslationMemory and the ServerBasedTranslationMemory objects (from Sdl.LanguagePlateform.TranslationMemoryApi) to launch the Concordance Search. Everything works fine so far.

The thing is now that I have a third type of translation memory in the TranslationProviderConfiguration of my projects: SDL WorldServer translation memories. My question is now: which object should I used to access these TMs (using the provided Uri) and launch a concordance search on these WorldServer TMs?

Thank you in advance for your support.

Regards,

Laurent

  • FileBasedTranslationMemory and ServerBasedTranslationMemory are specific for file based and Groupshare TMs. Wordlserver translation provider might have a different implementation which might not use one the classes suggested by you from the Translation Memory API. 

    I recommend working on the ITranslationMemory interface rather than on one of the above concrete implementations especially for this situation where you want to work with different translation providers. This is interface should be used by any translation provider that supports concordance search (this the abstraction on which Trados Studio is working). There's a bit of challenge if you work on this abstraction as is not exposing the LanguageDirection property rather you will have to use the GetLanguageDirection method.

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • Hi Romulus,

    Thank you very much for your reply. I can have a look at the ITranslationMemory interface but does this mean that I will have to create my own class to access SDL WorldServer TMs? Is there any possibility to access the object used by the SDL WorldServer translation provider used by Studio?

    Thank you and regards,

    Laurent