Kanzi  3.9.7
Localization API
LocalizationTableRow Class Reference

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. More...
 

Properties

string DefaultText [get]
 Gets the default value of a 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

LocalizationTableRow ( string  resourceName,
string  defaultText,
Dictionary< string, string >  translations 
)
inline

Creates a new instance of the LocalizationTableRow class representing a single text resource and all its values in all locales.

Parameters
resourceNameThe name of the text resource.
defaultTextThe default value of the text resource (non-translated text).
translationsThe 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.

Property Documentation

string DefaultText
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.

string ResourceName
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.

Dictionary<string, string> Translations
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.