Method | Description | |
---|---|---|
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 ( |
Method | Description | |
---|---|---|
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 | |
return | bool |
public AddLanguage ( Language language, bool populateDefaultValues ) : bool | ||
language | Language | |
populateDefaultValues | bool | |
return | bool |
public AddPage ( |
||
page | ||
return | bool |
public DeleteLanguage ( Language language, bool cascadeDelete = true ) : bool | ||
language | Language | |
cascadeDelete | bool | |
return | bool |
public DeletePage ( |
||
page | ||
return | bool |
public GetLocalizedTextDictionaryForPage ( string pageName, string language ) : string>.Dictionary |
||
pageName | string | |
language | string | |
return | string>.Dictionary |
public GetLocalizedTextForPage ( |
||
page | ||
language | string | |
return | List |
public GetLocalizedTextForPage ( string pageName, string language = "EN" ) : List |
||
pageName | string | |
language | string | |
return | List |
public LocalizationService ( IUnitOfWork unitOfWork ) : System | ||
unitOfWork | IUnitOfWork | |
return | 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 |
return | bool |
public UpdateLanguage ( Language language ) : bool | ||
language | Language | |
return | bool |
public UpdatePage ( |
||
page | ||
return | bool |