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... | |
virtual LanguageSet | GetGroup (string groupName, string code) |
Loads a standard group by name. More... | |
LanguageSet | Get (string code) |
Gets the language with the given code. Called very rarely. More... | |
LanguageSet[] | AllLanguages () |
Gets all available languages. More... | |
Public Attributes | |
string | Path |
The path to the location of the languages. More... | |
Protected Member Functions | |
virtual LanguageSet[] | GetAllLanguages () |
Gets all available languages. More... | |
virtual LanguageSet | GetLanguage (string code) |
Override this to get a language by given code. More... | |
Private Attributes | |
LanguageSet[] | AllLanguagesLoaded |
The set of all languages if they've all been loaded. More... | |
|
inline |
Creates a new loader for the given path.
|
inline |
Gets all available languages.
|
inline |
Gets the language with the given code. Called very rarely.
code | The language code to look for. |
|
inlineprotectedvirtual |
Gets all available languages.
Reimplemented in Wrench.UnityLanguageLoader.
|
inlinevirtual |
Loads a standard group by name.
groupName | The name of the group. |
code | The language code. |
|
inlineprotectedvirtual |
Override this to get a language by given code.
code | The language code (e.g. "en"). |
Reimplemented in Wrench.UnityLanguageLoader.
|
private |
The set of all languages if they've all been loaded.
string Wrench.LanguageLoader.Path |
The path to the location of the languages.