C# Class VersionOne.Localization.Localizer

Inheritance: ILocalizerResolver
Mostrar archivo Open project: versionone/VersionOne.Localization Class Usage Examples

Public Methods

Method Description
Add ( string tag, string translation ) : void
Localizer ( Localizer fallback ) : System.Collections
Remove ( string tag ) : void
Resolve ( string tag ) : string

Private Methods

Method Description
Cache ( string tag, string translation ) : string
ExpandTemplate ( string template, string tag, Stack resolvestack ) : string
FindTemplate ( string templateTag ) : string
LookupCached ( string tag ) : string
LookupTemplate ( string tag ) : string
ReplaceLiteralBraces ( string input ) : string
Resolve ( string tag, Stack resolvestack ) : string
ResolveEmbedded ( string embeddedtag, string tagparts, Stack resolvestack ) : string
ResolveTemplate ( string tag, Stack resolvestack ) : string
StripLiteralBraces ( string input ) : string
Unembed ( string embeddedtag, string tagparts ) : string

Method Details

Add() public method

public Add ( string tag, string translation ) : void
tag string
translation string
return void

Localizer() public method

public Localizer ( Localizer fallback ) : System.Collections
fallback Localizer
return System.Collections

Remove() public method

public Remove ( string tag ) : void
tag string
return void

Resolve() public method

public Resolve ( string tag ) : string
tag string
return string