MT Enhanced Plugin: First 10 segments are treated wrongly: Translation will be inserted into the wrong segments!

Screenshot of Trados Studio showing segment 2 incorrectly populated with the target text of segment 10, highlighted in yellow.

Hello,

there is a strange behavior regarding the first 10 segments:
Some segments will be not translated, or will be translated with the content of other target segments!

As you can see in the attached screenshot, segment 2 is populated with the target of segment 10.

In addition, the MT proposal for other segments are applied to the target segments in an interactive mode, and not in batch mode.

Reason for this strange behavior is a bug workaround in MtTranslationProviderLanguageDirection.cs:

...

// because of the following bug LG-15128 where mask parameters are true for both CM and the actual TU to be updated which cause an unnecessary call for CM segment

//we take only the last translation unit because the first one is CM

//this workaround works only when LookAhead option is disabled from Studio

var results = new List<SearchResults>();

 if (!mask.Any(m => m.Equals(false)) && mask.Length > 1)

{

var lastTu = translationUnits[translationUnits.Length - 1];

var result = SearchTranslationUnit(settings, lastTu);

results.Add(null);

results.Add(result);

}

...

I simply disabled this and it seems to work correct, the bug seems not to be there anymore!

This problem occurs still in the latest Studio 2017 and Studio 2019 version (4.3.3).

Can somebody please check this and modify the App accordingly?

Any help is appreciated!

Regards

Rainer



Generated Image Alt-Text
[edited by: Trados AI at 10:48 AM (GMT 0) on 4 Mar 2024]
emoji