Hi,
I am implementing a Terminology Provider plugin for Trados Studio 2021, 2022 SR2 and 2024.
I need to keep all three versions properly updated.
My problem is that when I am using custom languages (regional), I notice two problems:
#1. in Studio 2022 SR2 (only in this version) I get a constant 'Searching for terms..' and no results appear, even though I do search and return with results (an exception appears in the logs)
#2. in Studio 2022 SR2 and Studio 2024 the system does not ask for the descriptive fields and so it does not fill in the Hitlist fields.
-------------------------
PROBLEM #1: STEPS TO REPRODUCE
1. Use a custom terminology provider plugin
2. Create a project that translates from ENG-US to GER-DE
3. You need to map the ENG-US to a custom language, e.g. ENG-GB
4. Open the project and try to search for terms using the custom terminology provider. You will see that the 'Searching for terms..' message stays forever
At the same moment you get the following error in the logs:
ERROR [2024-07-11 19:17:58,201] Sdl.TranslationStudio.Editor.Terminology.SegmentTermRecognizer - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Sdl.MultiTerm.Client.TerminologyProvider.Search.TermbaseRecognitionEngine.CreateScoringObject()
at Sdl.MultiTerm.Client.TerminologyProvider.Search.TermbaseRecognitionEngine.FindTerms(String text, Int16 termbaseMaxHits, Boolean includeHomonyms, Boolean allowOverlappingTerms)
at Sdl.TranslationStudio.Editor.Terminology.SegmentTermRecognizer.RecogniseTerms(IList`1 termbaseContexts, IProjectTermbaseRecognitionOptions recognitionOptions, TermRecognitionSettings termRecognitionSettingsBundle, ITermbaseRecognitionEngine recognitionEngine, PlainTextMapper sourceTextMapper)
ERROR [2024-07-11 19:17:58,383] Sdl.TranslationStudio.Editor.Terminology.SegmentTermRecognizer - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Sdl.MultiTerm.Client.TerminologyProvider.Search.TermbaseRecognitionEngine.CreateScoringObject()
at Sdl.MultiTerm.Client.TerminologyProvider.Search.TermbaseRecognitionEngine.FindTerms(String text, Int16 termbaseMaxHits, Boolean includeHomonyms, Boolean allowOverlappingTerms)
at Sdl.TranslationStudio.Editor.Terminology.SegmentTermRecognizer.RecogniseTerms(IList`1 termbaseContexts, IProjectTermbaseRecognitionOptions recognitionOptions, TermRecognitionSettings termRecognitionSettingsBundle, ITermbaseRecognitionEngine recognitionEngine, PlainTextMapper sourceTextMapper)
I am attaching the full log
I noticed from my personal logs that the `ITerminologyProvider.Search` runs normally without issues and I return the search results properly, but the `ITerminologyProvider.GetEntry(int id)` does not run at all.
It is important to notice that the exact same code runs perfectly in Trados Studio 2024.
-------------------------
PROBLEM #2: STEPS TO REPRODUCE
Follow exactly the same steps 1-3 from problem #1
Now, open your project and notice that Trados does not ever run the `ITerminologyProvider.GetDescriptiveFields()` to fill in the Hitlist Fields
This problem exists in Studio 2022 SR2 and Studio 2024.
If I use no custom languages I get the descriptive fields to work fine.
Looking forward to your answer
Generated Image Alt-Text
[edited by: RWS Community AI at 6:06 AM (GMT 0) on 15 Nov 2024]