Table of Contents

Class UntranslatedUnit

Namespace
Tlumach
Assembly
Tlumach.dll

This class can be used to present some application-provided string in situations where a TranslationUnit is required.

public class UntranslatedUnit : TranslationUnit, IDisposable
Inheritance
UntranslatedUnit
Implements
Inherited Members

Constructors

UntranslatedUnit(string, TranslationManager, TranslationConfiguration, bool)

Initializes a new instance of the UntranslatedUnit class.

public UntranslatedUnit(string sourceValue, TranslationManager translationManager, TranslationConfiguration translationConfiguration, bool containsPlaceholders)

Parameters

sourceValue string

The string value to return.

translationManager TranslationManager

A reference to some instance of TranslationManager. It can be any instance - it is not used by the class.

translationConfiguration TranslationConfiguration

A reference to an instance of TranslationConfiguration. If containsPlaceholders is true, this configuration's TextProcessingMode is used to process the sourceValue.

containsPlaceholders bool

Specifies whether sourceValue contains placeholders and should be processed accordingly.

Properties

SourceValue

Gets or sets the string value that this translation unit exposes.

public string? SourceValue { get; set; }

Property Value

string

Methods

InternalGetEntry(CultureInfo)

protected override TranslationEntry? InternalGetEntry(CultureInfo cultureInfo)

Parameters

cultureInfo CultureInfo

Returns

TranslationEntry

InternalGetValueAsText(CultureInfo)

protected override string InternalGetValueAsText(CultureInfo culture)

Parameters

culture CultureInfo

Returns

string