Class Language
Core system to handle localization logic
Properties
CurrentLanguage
Current selecting language ISO
Declaration
public static string CurrentLanguage { get; }
LanguageCount
Total count of languages loaded inside the system
Declaration
public static int LanguageCount { get; }
PoolReady
True if the system is ready to use
Declaration
public static bool PoolReady { get; }
Methods
Get(int, string)
Get display content from given ID
Declaration
public static string Get(int id, string failback = "")
Default value if content not found in system pool
GetLanguageAt(int)
Get ISO of the language from system list at given index
Declaration
public static string GetLanguageAt(int index)
SetLanguage(string)
Set current selecting language
Declaration
public static bool SetLanguage(string language)
Parameters
Type | Name | Description |
---|---|---|
string | language | ISO of target language |
Returns
Type | Description |
---|---|
bool | True if successfuly setted |