C# Class Castle.MonoRail.Framework.Filters.LocalizationFilter

The LocalizationFilter can be used to determine the culture to use for resources and UI.
Inheritance: IFilter, IFilterAttributeAware
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool

Executes a sequence of steps to determine the browser location/culture.

Private Methods

Method Description
GetLocaleId ( IRailsEngineContext context ) : String

Gets the locale id.

GetUserLanguage ( IRequest request ) : String

Gets the user language.

Method Details

Perform() public method

Executes a sequence of steps to determine the browser location/culture.
public Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool
exec ExecuteEnum When this filter is being invoked
context IRailsEngineContext Current context
controller Controller The controller instance
return bool