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
Afficher le fichier Open project: RebelCMS/rebelcmsxu5

Méthodes publiques

Свойство Type Description
CurrentLanguage Func
DebugMode Func

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

protected DebugText ( string ns, string key, LanguageInfo language, ParameterSet dict ) : string
ns string
key string
language LanguageInfo
dict ParameterSet
Résultat string

DefaultTextManager() public méthode

public DefaultTextManager ( ) : System
Résultat System

EnableHtmlPatterns() public méthode

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
Résultat DefaultTextManager

EnsureLoaded() protected méthode

protected EnsureLoaded ( ) : void
Résultat void

GetCurrentLanguage() public méthode

public GetCurrentLanguage ( ) : LanguageInfo
Résultat LanguageInfo

GetCurrentTimeZoneInfo() public méthode

public GetCurrentTimeZoneInfo ( ) : TimeZoneInfo
Résultat System.TimeZoneInfo

GetNamespace() public méthode

public GetNamespace ( Assembly asm ) : string
asm System.Reflection.Assembly
Résultat string

IsInDebugMode() protected méthode

protected IsInDebugMode ( ) : bool
Résultat bool

PrepareAssemblyTextSources() public méthode

public PrepareAssemblyTextSources ( ) : void
Résultat void

PrepareTextSources() public méthode

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

PrepareTextSources() public méthode

public PrepareTextSources ( string ns = null, string key = null, LanguageInfo language = null ) : bool
ns string
key string
language LanguageInfo
Résultat bool

SourceTextsChanged() protected méthode

protected SourceTextsChanged ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
Résultat void

Property Details

CurrentLanguage public_oe property

This delegate is used to resolve the current language;
public Func CurrentLanguage
Résultat 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
Résultat Func