C# Class Rebel.Framework.Localization.DefaultTextManager

A default implementation of TextManager where the current language is given by the evaluation of the delegate
Inheritance: TextManager
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Properties

Property Type Description
CurrentLanguage Func
DebugMode Func

Public Methods

Method Description
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

Protected Methods

Method Description
DebugText ( string ns, string key, LanguageInfo language, ParameterSet dict ) : string
EnsureLoaded ( ) : void
IsInDebugMode ( ) : bool
SourceTextsChanged ( object sender, EventArgs args ) : void

Method Details

DebugText() protected method

protected DebugText ( string ns, string key, LanguageInfo language, ParameterSet dict ) : string
ns string
key string
language LanguageInfo
dict ParameterSet
return string

DefaultTextManager() public method

public DefaultTextManager ( ) : System
return System

EnableHtmlPatterns() public method

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
return DefaultTextManager

EnsureLoaded() protected method

protected EnsureLoaded ( ) : void
return void

GetCurrentLanguage() public method

public GetCurrentLanguage ( ) : LanguageInfo
return LanguageInfo

GetCurrentTimeZoneInfo() public method

public GetCurrentTimeZoneInfo ( ) : TimeZoneInfo
return System.TimeZoneInfo

GetNamespace() public method

public GetNamespace ( Assembly asm ) : string
asm System.Reflection.Assembly
return string

IsInDebugMode() protected method

protected IsInDebugMode ( ) : bool
return bool

PrepareAssemblyTextSources() public method

public PrepareAssemblyTextSources ( ) : void
return void

PrepareTextSources() public method

Prepares the text sources from the specified assembly.
public PrepareTextSources ( Assembly asm ) : bool
asm System.Reflection.Assembly The assembly.
return bool

PrepareTextSources() public method

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

SourceTextsChanged() protected method

protected SourceTextsChanged ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
return void

Property Details

CurrentLanguage public_oe property

This delegate is used to resolve the current language;
public Func CurrentLanguage
return Func

DebugMode public_oe property

If this is specified and returns true debug information about the texts will be returned. (See DebugFunction).
public Func DebugMode
return Func