Override this class to provide methods for loading language files. They may be delivered in many different ways because of this.
Public Member Functions | |
| LanguageLoader (string path) | |
| Creates a new loader for the given path. More... | |
| void | GetGroup (string code, string groupName, LanguageEventDelegate groupReady) |
| Loads a standard group by name. More... | |
| Language | Get (string code) |
| Gets the language with the given code. More... | |
| virtual void | LoadFile (string path, LanguageTextEvent onFileAvailable) |
| Loads an XML file at the given path. More... | |
Public Attributes | |
| string | Path |
| The path to the location of the languages. More... | |
| Dictionary< string, Language > | Languages |
| The set of all languages if they've all been loaded. Indexed by lowercase language code. More... | |
Package Functions | |
| LanguageEvent | CreateEvent (string type) |
| Creates a language event for this loader. More... | |
|
inline |
Creates a new loader for the given path.
|
inlinepackage |
Creates a language event for this loader.
|
inline |
Gets the language with the given code.
| code | The language code to look for. |
|
inline |
Loads a standard group by name.
| code | The language code. |
| groupName | The name of the group. |
|
inlinevirtual |
Loads an XML file at the given path.
| onFileAvailable | A callback that runs when the file has been downloaded. |
Reimplemented in Dom.PowerUILanguageLoader.
| Dictionary<string,Language> Dom.LanguageLoader.Languages |
The set of all languages if they've all been loaded. Indexed by lowercase language code.
| string Dom.LanguageLoader.Path |
The path to the location of the languages.