Метод | Описание | |
---|---|---|
Add ( |
Adds the translations to the resource manager.
|
|
Add ( string locale, string>.IDictionary |
Adds the translations to the resource manager.
|
|
Add ( string key, string locale, string text ) : void |
Adds a translation to the resource manager.
|
|
Add ( uint statusCode, string locale, string text ) : void |
Adds the translations to the resource manager.
|
|
Dispose ( ) : void |
May be called by the application to clean up resources.
|
|
GetAvailableLocales ( ) : string[] |
Returns the locales supported by the resource manager.
|
|
LoadDefaultText ( ) : void |
Uses reflection to load default text for standard StatusCodes.
|
|
ResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : System |
Initializes the resource manager with the server instance that owns it.
|
|
Translate ( IList |
||
Translate ( IList |
||
Translate ( IList |
Translates a service result.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Cleans up all resources held by the object.
|
|
Translate ( IList |
Translates the text provided.
|
Метод | Описание | |
---|---|---|
FindBestTranslation ( IList |
Finds the best translation for the requested locales.
|
|
GetAvailableLocales ( IEnumerable |
||
GetTable ( string locale ) : TranslationTable |
Finds the translation table for the locale. Creates a new table if it does not exist.
|
|
GetText ( IList |
||
GetTextForLocale ( string locale, string textId, string defaultText ) : string | ||
TranslateStatusCode ( IList |
Translates a status code.
|
|
TranslateSymbolicId ( IList |
Translates a symbolic id.
|
public Add ( |
||
symbolicId | ||
locale | string | |
text | string | |
Результат | void |
public Add ( string locale, string>.IDictionary |
||
locale | string | |
translations | string>.IDictionary | |
Результат | void |
public Add ( string key, string locale, string text ) : void | ||
key | string | |
locale | string | |
text | string | |
Результат | void |
public Add ( uint statusCode, string locale, string text ) : void | ||
statusCode | uint | |
locale | string | |
text | string | |
Результат | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public ResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : System | ||
server | IServerInternal | |
configuration | ApplicationConfiguration | |
Результат | System |
public Translate ( IList |
||
preferredLocales | IList |
|
text | LocalizedText | |
Результат | LocalizedText |
protected Translate ( IList |
||
preferredLocales | IList |
|
defaultText | LocalizedText | |
info | TranslationInfo | |
Результат | LocalizedText |
public Translate ( IList |
||
preferredLocales | IList |
|
key | string | |
text | string | |
Результат | LocalizedText |
public Translate ( IList |
||
preferredLocales | IList |
|
result | ServiceResult | |
Результат | ServiceResult |