Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TranslationReport

OfficeIMO.GoogleWorkspace

Namespace
OfficeIMO.GoogleWorkspace
Assembly
OfficeIMO.GoogleWorkspace
Source revision
be6c300e4ab1 with working tree changes
Base
OfficeConversionReport
Modifiers
sealed

Standard fidelity report shared across exporter packages.

Inheritance

  • OfficeConversionReport
  • TranslationReport

Usage

Explore 24 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 19

Constructors

public TranslationReport() #

Creates an empty, mutable translation report.

Methods

public void Add(TranslationSeverity severity, string feature, string message, string path = "", string? code = null, TranslationAction action = None, int count = 1, string? targetId = null) #

Adds a structured translation notice.

Parameters

severity OfficeIMO.GoogleWorkspace.TranslationSeverity required
Impact of the notice.
feature string required
Source feature to which the notice applies.
message string required
Human-readable explanation.
path string = "" optional
Optional source-object path.
code string? = null optional
Stable diagnostic code, or null to derive one from feature.
action OfficeIMO.GoogleWorkspace.TranslationAction = None optional
Action selected for the feature.
count int = 1 optional
Number of equivalent occurrences represented by the notice; values below one become one.
targetId string? = null optional
Optional remote target identifier.
public void AddUnique(TranslationSeverity severity, string feature, string message, string path = "", string? code = null, TranslationAction action = None, int count = 1, string? targetId = null) #

Adds a notice unless the report already contains the same severity, code, feature, message, and path.

Parameters

severity OfficeIMO.GoogleWorkspace.TranslationSeverity required
Impact of the notice.
feature string required
Source feature to which the notice applies.
message string required
Human-readable explanation.
path string = "" optional
Optional source-object path.
code string? = null optional
Stable diagnostic code, or null to derive one from feature.
action OfficeIMO.GoogleWorkspace.TranslationAction = None optional
Action selected for the feature.
count int = 1 optional
Number of equivalent occurrences represented by the notice.
targetId string? = null optional
Optional remote target identifier.
public TranslationReport CreateReadOnlySnapshot() #

Creates an independent read-only snapshot of the current notices.

Properties

public IReadOnlyList<TranslationNotice> Notices { get; } #

Gets the notices in the order in which translators recorded them.

public bool HasWarnings { get; } #

Gets whether the report contains at least one warning or error.

public bool HasErrors { get; } #

Gets whether the report contains at least one error.

public override bool HasLoss { get; } #

Gets whether the translation omitted, approximated, or failed to preserve content.

Extension Methods

public static IReadOnlyList<GoogleWorkspaceDiagnosticEntry> ToDiagnosticEntries(TranslationReport report) #

Converts every notice in a translation report to a structured diagnostic entry.

Parameters

report OfficeIMO.GoogleWorkspace.TranslationReport required
Report to convert.

Returns

IReadOnlyList<GoogleWorkspaceDiagnosticEntry> A snapshot preserving notice order and metadata.