메소드 | 설명 | |
---|---|---|
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 populateDefaultValues ) : bool | ||
language | Language | |
populateDefaultValues | bool | |
리턴 | 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 |