Class LocalizationService
- Namespace
- PlumJsonAnimator.Services
- Assembly
- PlumJsonAnimator.dll
Provides methods for localize application
public class LocalizationService : INotifyable, INotifyPropertyChanged
- Inheritance
-
LocalizationService
- Implements
- Inherited Members
Constructors
LocalizationService()
public LocalizationService()
Fields
LangResources
public ResourceDictionary LangResources
Field Value
- ResourceDictionary
START_LANG
public const string START_LANG = "ru-RU"
Field Value
currentLang
public string currentLang
Field Value
langs
public List<string> langs
Field Value
Methods
GetMessage(LocalizationConsts)
Returns localizated data, needs word code
public string GetMessage(LocalizationConsts constStr)
Parameters
constStrLocalizationConstsWord code
Returns
LoadLangResorce()
public void LoadLangResorce()
LoadLangResorce(string)
public void LoadLangResorce(string lang)
Parameters
langstring
LoadLangs()
Reads all files in LocalizationFilesPath and collect them into this.langs
public void LoadLangs()