All Classes Namespaces Functions Variables Properties
Public Member Functions | Properties | List of all members
LocalizationTableRow Class Reference

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

Detailed Description

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.

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 it's translations.

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

The default text. This value corresponds to the Text property of the TextResource item in 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 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.