C# Class i18n.LocalizedApplication

Manages the configuration of the i18n features of your localized application.
Inheritance: IRootServices
Exibir arquivo Open project: turquoiseowl/i18n Class Usage Examples

Public Properties

Property Type Description
AsyncPostbackTypesToTranslate string
ContentTypesToLocalize System.Text.RegularExpressions.Regex
UrlsToExcludeFromProcessing System.Text.RegularExpressions.Regex

Public Methods

Method Description
LocalizedApplication ( IRootServices i_RootServices = null ) : System

Method Details

LocalizedApplication() public method

public LocalizedApplication ( IRootServices i_RootServices = null ) : System
i_RootServices IRootServices
return System

Property Details

AsyncPostbackTypesToTranslate public_oe property

Comma separated value string that lists the async postback types that should be localized.
Defaults to "updatePanel,scriptStartupBlock,pageTitle"
Clients may customise this member in Application_Start.
public string AsyncPostbackTypesToTranslate
return string

ContentTypesToLocalize public_oe property

Regular expression that controls the ContextTypes elligible for response localization.
Set to null to disable Late URL Localization.
Defaults to @"^(?:(?:(?:text|application)/(?:plain|html|xml|javascript|x-javascript|json|x-json))(?:\s*;.*)?)$.
Client may customise this member, for instance in Application_Start.
This feature requires the LocalizedModule HTTP module to be intalled in web.config.
Explanation of the default regex:
Content-type string must begin with "text" or "application"
This must be followed by "/"
This must be followed by "plain" or "html" ...
And finally this may be followed by the following sequence:
zero or more whitespace then ";" then any number of any chars up to end of string.
public Regex,System.Text.RegularExpressions ContentTypesToLocalize
return System.Text.RegularExpressions.Regex

UrlsToExcludeFromProcessing public_oe property

Regular expression that excludes certain URL paths from being localized.
Defaults to excluding all less and css files and any URLs containing the phrases i18nSkip, glimpse, trace or elmah (case-insensitive)
Clients may customise this member in Application_Start
This feature requires the LocalizedModule HTTP module to be intalled in web.config.
public Regex,System.Text.RegularExpressions UrlsToExcludeFromProcessing
return System.Text.RegularExpressions.Regex