Class BaseLocalizeHelper
Declaration
public abstract class BaseLocalizeHelper : ILocalizeHelper
Derived:
MatchinghamGames.Localization.Helpers.BasicLocalizeHelper, MatchinghamGames.Localization.Helpers.DefaultLocalizeService
Implements:
MatchinghamGames.Localization.Models.ILocalizeHelper
Properties
ActiveLanguage
Declaration
public string ActiveLanguage { get; protected set; }
IsBusy
Declaration
public bool IsBusy { get; protected set; }
Methods
LoadData(string)
Declaration
protected abstract void LoadData(string targetLanguageCode)
Parameters
Type | Name |
---|---|
System.String | targetLanguageCode |
UnloadData()
Declaration
protected abstract void UnloadData()
Get(string, string)
Declaration
public abstract string Get(string key, string fallback = "")
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | fallback |
GetFormatted(string, string, string)
Declaration
public abstract string GetFormatted(string key, string args0, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | fallback |
GetFormatted(string, string, string, string)
Declaration
public abstract string GetFormatted(string key, string args0, string args1, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | args1 |
System.String | fallback |
GetFormatted(string, string, string, string, string)
Declaration
public abstract string GetFormatted(string key, string args0, string args1, string args2, string fallback)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | args0 |
System.String | args1 |
System.String | args2 |
System.String | fallback |
TryGet(string, out string)
Declaration
public abstract bool TryGet(string key, out string value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.String | value |
InitializeDefault()
Declaration
public virtual void InitializeDefault()
ChangeBySystemLanguage(SystemLanguage)
Declaration
public void ChangeBySystemLanguage(SystemLanguage systemLanguage)
Parameters
Type | Name |
---|---|
Global.SystemLanguage | systemLanguage |
Change(string)
Declaration
public void Change(string newLanguage)
Parameters
Type | Name |
---|---|
System.String | newLanguage |