Метод | Описание | |
---|---|---|
AddLanguage ( Language language ) : bool | ||
AddLanguage ( Language language, bool populateDefaultValues ) : bool | ||
AddPage ( |
||
DeleteLanguage ( Language language, bool cascadeDelete = true ) : bool | ||
DeletePage ( |
||
Dispose ( ) : void | ||
GetLocalizedTextDictionaryForPage ( string pageName, string language ) : string>.Dictionary |
||
GetLocalizedTextForPage ( |
||
GetLocalizedTextForPage ( string pageName, string language = "EN" ) : List |
||
LocalizationService ( IUnitOfWork unitOfWork ) : System | ||
TranslatePage ( string page, string>.Dictionary |
Adds new entries into the localized phrases table for all phrases in the 'translation' dictionary. It also associates the page 'page' with the list of translated phrases
|
|
UpdateLanguage ( Language language ) : bool | ||
UpdatePage ( |
Метод | Описание | |
---|---|---|
LocalizedTextForPage ( int pageId, string language ) : IEnumerable |
||
TranslatePage ( |
Adds new entries into the localized phrases table for all phrases in the 'translation' dictionary. It also associates the page 'page' with the list of translated phrases
|
|
TranslatedTextFromDictionaryOrDefault ( string phrase, string>.Dictionary |
Checks if a corresponding translated entry exist inside translations dictionary. If no match if found then it will return the language neutral phrase (the one passed as parameter).
|
public AddLanguage ( Language language ) : bool | ||
language | Language | |
Результат | bool |
public AddLanguage ( Language language, bool populateDefaultValues ) : bool | ||
language | Language | |
populateDefaultValues | bool | |
Результат | bool |
public AddPage ( |
||
page | ||
Результат | bool |
public DeleteLanguage ( Language language, bool cascadeDelete = true ) : bool | ||
language | Language | |
cascadeDelete | bool | |
Результат | bool |
public DeletePage ( |
||
page | ||
Результат | bool |
public GetLocalizedTextDictionaryForPage ( string pageName, string language ) : string>.Dictionary |
||
pageName | string | |
language | string | |
Результат | string>.Dictionary |
public GetLocalizedTextForPage ( |
||
page | ||
language | string | |
Результат | List |
public GetLocalizedTextForPage ( string pageName, string language = "EN" ) : List |
||
pageName | string | |
language | string | |
Результат | List |
public LocalizationService ( IUnitOfWork unitOfWork ) : System | ||
unitOfWork | IUnitOfWork | |
Результат | System |
public TranslatePage ( string page, string>.Dictionary |
||
page | string | Name of the page to translate |
translations | string>.Dictionary | Dictionary of translation terms [Phrase][TranslatedPhrase] |
language | string | Language to translate to |
Результат | bool |
public UpdateLanguage ( Language language ) : bool | ||
language | Language | |
Результат | bool |
public UpdatePage ( |
||
page | ||
Результат | bool |