C# Class i18n.LocalizedApplication

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

Méthodes publiques

Свойство Type Description
AsyncPostbackTypesToTranslate string
ContentTypesToLocalize System.Text.RegularExpressions.Regex
UrlsToExcludeFromProcessing System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode Description
LocalizedApplication ( IRootServices i_RootServices = null ) : System

Method Details

LocalizedApplication() public méthode

public LocalizedApplication ( IRootServices i_RootServices = null ) : System
i_RootServices IRootServices
Résultat 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
Résultat 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
Résultat 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
Résultat System.Text.RegularExpressions.Regex