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
sourceValuestringThe string value to return.
translationManagerTranslationManagerA reference to some instance of TranslationManager. It can be any instance - it is not used by the class.
translationConfigurationTranslationConfigurationA reference to an instance of TranslationConfiguration. If
containsPlaceholdersis true, this configuration's TextProcessingMode is used to process thesourceValue.containsPlaceholdersboolSpecifies whether
sourceValuecontains 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
Methods
InternalGetEntry(CultureInfo)
protected override TranslationEntry? InternalGetEntry(CultureInfo cultureInfo)
Parameters
cultureInfoCultureInfo
Returns
InternalGetValueAsText(CultureInfo)
protected override string InternalGetValueAsText(CultureInfo culture)
Parameters
cultureCultureInfo