Public Member Functions

 Language (string code, LanguageLoader loader)
 
LanguageGroup addGroup (string groupName, string xml)
 Creates and adds a new language group using the given xml. More...
 
void getGroup (string groupName, LanguageEventDelegate groupReady)
 Loads a standard group by name. More...
 

Public Attributes

LanguageLoader Loader
 The loader that has loaded this language. More...
 
Dictionary< string, LanguageGroupGroups =new Dictionary<string,LanguageGroup>()
 All available groups. A group with an empty string name is the default one. More...
 

Package Attributes

LanguageInfo info_
 Raw language info. More...
 

Properties

string code [get]
 Lowercase ISO 639-1. E.g. "en". More...
 
string name [get]
 The language name in the Editor language (English). More...
 
string localName [get]
 The local language name. More...
 
string dir [get]
 The language name in the Editor language (English). More...
 
bool leftwards [get]
 True if this language goes from right to left (e.g. arabic). More...
 

Constructor & Destructor Documentation

Dom.Language.Language ( string  code,
LanguageLoader  loader 
)
inline

Member Function Documentation

LanguageGroup Dom.Language.addGroup ( string  groupName,
string  xml 
)
inline

Creates and adds a new language group using the given xml.

void Dom.Language.getGroup ( string  groupName,
LanguageEventDelegate  groupReady 
)
inline

Loads a standard group by name.

Parameters
groupNameThe name of the group.

Member Data Documentation

Dictionary<string,LanguageGroup> Dom.Language.Groups =new Dictionary<string,LanguageGroup>()

All available groups. A group with an empty string name is the default one.

LanguageInfo Dom.Language.info_
package

Raw language info.

LanguageLoader Dom.Language.Loader

The loader that has loaded this language.

Property Documentation

string Dom.Language.code
get

Lowercase ISO 639-1. E.g. "en".

string Dom.Language.dir
get

The language name in the Editor language (English).

bool Dom.Language.leftwards
get

True if this language goes from right to left (e.g. arabic).

string Dom.Language.localName
get

The local language name.

string Dom.Language.name
get

The language name in the Editor language (English).