C# Class Simplify.Web.Modules.LanguageManager

Current language controller and information container
Inheritance: ILanguageManager
Afficher le fichier Open project: i4004/Simplify.Web Class Usage Examples

Méthodes publiques

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

Méthode Description
TrySetLanguageFromCookie ( IOwinContext context ) : bool
TrySetLanguageFromRequestHeader ( IOwinContext context ) : bool

Method Details

LanguageManager() public méthode

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

SetCookieLanguage() public méthode

Set site cookie language value
public SetCookieLanguage ( string language ) : void
language string Language code
Résultat void

SetCurrentLanguage() public méthode

Set language only for current request
public SetCurrentLanguage ( string language ) : bool
language string Language code
Résultat bool