Verify files report

Hi everyone, 

We create a plugin for trados QA Tools help translators for all version of trados but we have a problem with version 2017/2019/2021.

In the previous versions mentioned, in the verify file report added two new columns: source and target.

In our case these columns are shown empty. We have reviewed the documentation and we did not find anything to be able to solve this problem.

Screenshot of Trados Studio verify file report with two empty columns labeled 'source' and 'target'. Error and warning messages are listed above the empty columns.

We are using this class: IBilingualContentMessageReporterWithExtendedData.

Thanks for the help.



Generated Image Alt-Text
[edited by: Trados AI at 1:29 PM (GMT 0) on 5 Mar 2024]
Parents Reply
  • Hi Paul, Hi

    We have in our plugin verify we want to report some messages, It's working ok in 2015 version of trados but from 2017 to 2021 version in the report view was added two new columns "source" and "target", so our plugin is showing the rest of the columns but not this two new columns.

    Here is the code we are using, nothing special we are just using the example from documentation:

    producthelp.sdl.com/.../f4800ed4-4600-432f-ab26-0e6fbb2a3fdf.htm

    This is our implementation: 


    private void ReportQaToolsWarning(QaToolsApiSuggestion message, long lineNumber)
    {

    var extMsgReporter = MessageReporter as IBilingualContentMessageReporterWithExtendedData;
    var segmentPair = _segments.FirstOrDefault(s => s.SegmentPair.Properties.Id.Id == lineNumber.ToString()).SegmentPair;

    var msgData = new MoraviaVerifierMessageData(
    message.Type,
    message.Id,
    message.Msg
    );

    var reportMessageFrom = message.MsgDetails?.StartToken ?? 0;
    var reportMessageTo = message.MsgDetails?.EndToken ?? 0;

    extMsgReporter?.ReportMessage(segmentPair,
    $"QATools - {msgData.QaToolsOrigin} ({msgData.MessageId})",
    ErrorLevel.Warning,
    msgData.Text,
    new TextLocation(new Location(segmentPair?.Target, true), reportMessageFrom),
    new TextLocation(new Location(segmentPair?.Target, false), segmentPair.Target.ToString().Length - 1),
    msgData);

    }

    Regards.

Children