C# Class Simplify.Web.Modules.LanguageManager

Current language controller and information container
Inheritance: ILanguageManager
Show file Open project: i4004/Simplify.Web Class Usage Examples

Public Methods

Method Description
LanguageManager ( ISimplifyWebSettings settings, IOwinContext context ) : System

Initializes a new instance of the LanguageManager class.

SetCookieLanguage ( string language ) : void

Set site cookie language value

SetCurrentLanguage ( string language ) : bool

Set language only for current request

Private Methods

Method Description
TrySetLanguageFromCookie ( IOwinContext context ) : bool
TrySetLanguageFromRequestHeader ( IOwinContext context ) : bool

Method Details

LanguageManager() public method

Initializes a new instance of the LanguageManager class.
public LanguageManager ( ISimplifyWebSettings settings, IOwinContext context ) : System
settings ISimplifyWebSettings The settings.
context IOwinContext The OWIN context.
return System

SetCookieLanguage() public method

Set site cookie language value
public SetCookieLanguage ( string language ) : void
language string Language code
return void

SetCurrentLanguage() public method

Set language only for current request
public SetCurrentLanguage ( string language ) : bool
language string Language code
return bool