Smart Localization  2.3
SmartLocalization.SmartCultureInfoCollection Class Reference

A Serializeable Collection containing a list of Smart Culture Infos More...

Public Member Functions

void RemoveCultureInfo (SmartCultureInfo cultureInfo)
 Removes a culture info from the collection More...
 
void AddCultureInfo (SmartCultureInfo cultureInfo)
 Adds a culture info to the collection More...
 
SmartCultureInfo FindCulture (SmartCultureInfo cultureInfo)
 Finds a culture info from the list. Compares the englishname and the language code More...
 
SmartCultureInfo FindCulture (string languageCode)
 Finds a culture info from the list by the ISO-639 language code. More...
 
bool IsCultureInCollection (SmartCultureInfo cultureInfo)
 Checks if a specific culture info is in this collection More...
 

Static Public Member Functions

static SmartCultureInfoCollection Deserialize (TextAsset xmlFile)
 Deserializes and creates a SmartCultureInfoCollection from a text asset. More...
 

Public Attributes

const int LatestVersion = 4
 
int version = 0
 
List< SmartCultureInfocultureInfos = new List<SmartCultureInfo>()
 

Detailed Description

A Serializeable Collection containing a list of Smart Culture Infos

Member Function Documentation

void SmartLocalization.SmartCultureInfoCollection.AddCultureInfo ( SmartCultureInfo  cultureInfo)

Adds a culture info to the collection

Parameters
cultureInfoThe culture info to add
static SmartCultureInfoCollection SmartLocalization.SmartCultureInfoCollection.Deserialize ( TextAsset  xmlFile)
static

Deserializes and creates a SmartCultureInfoCollection from a text asset.

Parameters
xmlFileThe textasset containing the serialized xml data
Returns
The deserialized SmartCultureInfoCollection
SmartCultureInfo SmartLocalization.SmartCultureInfoCollection.FindCulture ( SmartCultureInfo  cultureInfo)

Finds a culture info from the list. Compares the englishname and the language code

Parameters
cultureInfoThe culture info to find
Returns
The culture info, returns null if not found
SmartCultureInfo SmartLocalization.SmartCultureInfoCollection.FindCulture ( string  languageCode)

Finds a culture info from the list by the ISO-639 language code.

Parameters
languageCodeThe ISO-639 language code
Returns
The found SmartCultureInfo. Returns null if nothing was found.
bool SmartLocalization.SmartCultureInfoCollection.IsCultureInCollection ( SmartCultureInfo  cultureInfo)

Checks if a specific culture info is in this collection

Parameters
cultureInfoThe culture info to check
Returns
If the specified culture info was in the collection
void SmartLocalization.SmartCultureInfoCollection.RemoveCultureInfo ( SmartCultureInfo  cultureInfo)

Removes a culture info from the collection

Parameters
cultureInfoThe reference to the culture info to remove

The documentation for this class was generated from the following file: