Table of Contents

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

string

currentLang

public string currentLang

Field Value

string

langs

public List<string> langs

Field Value

List<string>

Methods

GetMessage(LocalizationConsts)

Returns localizated data, needs word code

public string GetMessage(LocalizationConsts constStr)

Parameters

constStr LocalizationConsts

Word code

Returns

string

LoadLangResorce()

public void LoadLangResorce()

LoadLangResorce(string)

public void LoadLangResorce(string lang)

Parameters

lang string

LoadLangs()

Reads all files in LocalizationFilesPath and collect them into this.langs

public void LoadLangs()