LocalizationFilterAttribute API Document
This is an special filter attribute. It is used to define from where MonoRail should read the localization information to find out the locale of the client.
For example, it can use the browser, or a cookie, an entry in the query string (or even in the session)
Constructors
LocalizationFilterAttribute()
Defines that you want to use a cookie named "locale", but if that fails it falls back to the client's browser locale.
LocalizationFilterAttribute(RequestStore store, String key)
Defines a new LocalizationFilter.
| Parameter | Description |
|---|---|
| store | Location where the localization parameter is stored. |
| key | Name of the parameter in the store. |
Properties
| Name | Type | Description |
|---|---|---|
| Key | String | Key under which the locale value is stored. |
| Store | RequestStore | Location where the locale value is to be stored. |
| FailOnError | Boolean | True if an exception is to be thrown when a specific culture appears to be incorrect (can't be created). |
| UseBrowser | Boolean | Use client browser defined languages as default. |
| FilterType | Type | Gets the filter implementation type |
| When | ExecuteEnum | Gets when to run the filter |
| ExecutionOrder | Int32 | Gets or sets the filter execution order. The lower the value, the higher the priority |
Methods
BuildFilterDescriptors() : FilterDescriptor[]
Implementation of Castle.MonoRail.Framework.Internal.IFilterDescriptorBuilder. Returns the descriptor for this filter association.