Property | Type | Description | |
---|---|---|---|
_currentLanguage | |||
_languages | List |
||
_languagesLoaded | bool | ||
_loadLanguageAutomatically | bool |
Method | Description | |
---|---|---|
AvailableLanguages ( ) : List |
Returns a list of languages which are available to the mod. This will return language IDs for searching.
|
|
AvailableLanguagesReadable ( ) : List |
Returns a list of languages which are available to the mod. This will return readable languages for use on the UI
|
|
GetLanguageIDsFromName ( string name ) : List |
Returns a list of Language unique IDs that have the name
|
|
GetTranslation ( string translationId ) : string |
Gets a translation for a specific translation ID
|
|
HasTranslation ( string translationId ) : bool |
Returns whether you can translate into a specific translation ID
|
|
LoadLanguages ( ) : void |
Loads all languages up if not already loaded.
|
|
RefreshLanguages ( ) : void |
Forces a reload of the languages, even if they're already loaded
|
|
Translation ( bool loadLanguageAutomatically = true ) : System.Collections.Generic |
Method | Description | |
---|---|---|
DeserialiseLanguage ( |
Deserialise a language file using a TextReader
|
Method | Description | |
---|---|---|
SetCurrentLanguage ( ) : void |
protected DeserialiseLanguage ( |
||
reader | The text to deserialise | |
return |
public GetLanguageIDsFromName ( string name ) : List |
||
name | string | The name of the language to get IDs for |
return | List |
public GetTranslation ( string translationId ) : string | ||
translationId | string | The ID to return the translation for |
return | string |
public HasTranslation ( string translationId ) : bool | ||
translationId | string | The ID of the translation to check |
return | bool |
public Translation ( bool loadLanguageAutomatically = true ) : System.Collections.Generic | ||
loadLanguageAutomatically | bool | |
return | System.Collections.Generic |
protected Language,NaturalResourcesBrush.TranslationFramework _currentLanguage | ||
return |