Class TranslationValueEventArgs
Contains the arguments of the TranslationValueNeeded, TranslationValueFound, and TranslationValueNotFound events.
Inherited Members
Namespace: Tlumach
Assembly: Tlumach.dll
Syntax
public class TranslationValueEventArgs : EventArgs
Constructors
TranslationValueEventArgs(CultureInfo, string)
Declaration
public TranslationValueEventArgs(CultureInfo culture, string key)
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | |
| string | key |
Properties
Culture
Gets a reference to the culture, for which the text is needed.
Declaration
public CultureInfo Culture { get; }
Property Value
| Type | Description |
|---|---|
| CultureInfo |
Entry
May be set to the instance of the TranslationEntry class that corresponds to the specified Key and Culture and contains the requested text; alternatively, Text may be set.
Declaration
public TranslationEntry? Entry { get; set; }
Property Value
| Type | Description |
|---|---|
| TranslationEntry |
EscapedText
May be set to the escaped text value that corresponds to the specified Key and Culture; alternatively, Entry may be set. This parameter may be set instead of Text, in which case, it will be un-escaped and also will be used during template processing (if required).
Declaration
public string? EscapedText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Key
Gets the key of the requested translation entry.
Declaration
public string Key { get; }
Property Value
| Type | Description |
|---|---|
| string |
Text
Should be set to the text value that corresponds to the specified Key and Culture; alternatively, EscapedText or Entry may be set.
Declaration
public string? Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |