One row of a localization table for importing or exporting. More...
Public Member Functions | |
LocalizationTableRow (string resourceName, string defaultText, Dictionary< string, string > translations) | |
Creates a new instance of the LocalizationTableRow class representing a single text resource and all it's translations. More... | |
Properties | |
string | DefaultText [get] |
Gets the default text of the text resource. More... | |
string | ResourceName [get] |
Gets the name of the text resource. More... | |
Dictionary< string, string > | Translations [get] |
Gets the translations of the text resource. More... | |
One row of a localization table for importing or exporting.
This class represents a single text resource in the localization table and all it's translations.
|
inline |
Creates a new instance of the LocalizationTableRow class representing a single text resource and all it's translations.
resourceName | The name of the text resource. |
defaultText | The default non-translated text of the text resource. |
translations | The translations for the text resource. Translations are given in a dictionary where the keys are locale names and values are translated texts. The dictionary must not contain the same locale name twice with a different casing. |
|
get |
Gets the default text of the text resource.
The default text. This value corresponds to the Text property of the TextResource item in studio.
|
get |
Gets the name of the text resource.
The name of the resource. This value corresponds to the name of the TextResource item in studio.
|
get |
Gets the translations of the text resource.
The translations of the text resource. Translations are given in a dictionary where the keys are locale names and values are translated texts. The dictionary must not contain the same locale name twice with a different casing.