C# Класс Rebel.Framework.Localization.DefaultTextManager

A default implementation of TextManager where the current language is given by the evaluation of the delegate
Наследование: TextManager
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CurrentLanguage Func
DebugMode Func

Открытые методы

Метод Описание
DefaultTextManager ( ) : System
EnableHtmlPatterns ( ) : DefaultTextManager

Enables the Html tags in patterns using the default dialect. It will change the syntax for format groups from "<Group: ... >" to "<!Group: ... >"

GetCurrentLanguage ( ) : LanguageInfo
GetCurrentTimeZoneInfo ( ) : TimeZoneInfo
GetNamespace ( Assembly asm ) : string
PrepareAssemblyTextSources ( ) : void
PrepareTextSources ( Assembly asm ) : bool

Prepares the text sources from the specified assembly.

PrepareTextSources ( string ns = null, string key = null, LanguageInfo language = null ) : bool

Защищенные методы

Метод Описание
DebugText ( string ns, string key, LanguageInfo language, ParameterSet dict ) : string
EnsureLoaded ( ) : void
IsInDebugMode ( ) : bool
SourceTextsChanged ( object sender, EventArgs args ) : void

Описание методов

DebugText() защищенный Метод

protected DebugText ( string ns, string key, LanguageInfo language, ParameterSet dict ) : string
ns string
key string
language LanguageInfo
dict ParameterSet
Результат string

DefaultTextManager() публичный Метод

public DefaultTextManager ( ) : System
Результат System

EnableHtmlPatterns() публичный Метод

Enables the Html tags in patterns using the default dialect. It will change the syntax for format groups from "<Group: ... >" to "<!Group: ... >"
public EnableHtmlPatterns ( ) : DefaultTextManager
Результат DefaultTextManager

EnsureLoaded() защищенный Метод

protected EnsureLoaded ( ) : void
Результат void

GetCurrentLanguage() публичный Метод

public GetCurrentLanguage ( ) : LanguageInfo
Результат LanguageInfo

GetCurrentTimeZoneInfo() публичный Метод

public GetCurrentTimeZoneInfo ( ) : TimeZoneInfo
Результат System.TimeZoneInfo

GetNamespace() публичный Метод

public GetNamespace ( Assembly asm ) : string
asm System.Reflection.Assembly
Результат string

IsInDebugMode() защищенный Метод

protected IsInDebugMode ( ) : bool
Результат bool

PrepareAssemblyTextSources() публичный Метод

public PrepareAssemblyTextSources ( ) : void
Результат void

PrepareTextSources() публичный Метод

Prepares the text sources from the specified assembly.
public PrepareTextSources ( Assembly asm ) : bool
asm System.Reflection.Assembly The assembly.
Результат bool

PrepareTextSources() публичный Метод

public PrepareTextSources ( string ns = null, string key = null, LanguageInfo language = null ) : bool
ns string
key string
language LanguageInfo
Результат bool

SourceTextsChanged() защищенный Метод

protected SourceTextsChanged ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Результат void

Описание свойств

CurrentLanguage публичное свойство

This delegate is used to resolve the current language;
public Func CurrentLanguage
Результат Func

DebugMode публичное свойство

If this is specified and returns true debug information about the texts will be returned. (See DebugFunction).
public Func DebugMode
Результат Func