Import and export a single row from a localization table. 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 its values in all locales. | |
Properties | |
string | DefaultText [get] |
Gets the default value of a text resource. | |
string | ResourceName [get] |
Gets the name of the text resource. | |
Dictionary< string, string > | Translations [get] |
Gets the translations of the text resource. | |
Import and export a single row from a localization table.
This class represents a single text resource in the localization table and its values in all locales.
|
inline |
Creates a new instance of the LocalizationTableRow class representing a single text resource and all its values in all locales.
resourceName | The name of the text resource. |
defaultText | The default value of the text resource (non-translated text). |
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 value of a text resource.
The default text. This value corresponds to the Text property of a TextResource item in Kanzi 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 Kanzi 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.