C# 클래스 i18n.LocalizedApplication

Manages the configuration of the i18n features of your localized application.
상속: IRootServices
파일 보기 프로젝트 열기: turquoiseowl/i18n 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AsyncPostbackTypesToTranslate string
ContentTypesToLocalize System.Text.RegularExpressions.Regex
UrlsToExcludeFromProcessing System.Text.RegularExpressions.Regex

공개 메소드들

메소드 설명
LocalizedApplication ( IRootServices i_RootServices = null ) : System

메소드 상세

LocalizedApplication() 공개 메소드

public LocalizedApplication ( IRootServices i_RootServices = null ) : System
i_RootServices IRootServices
리턴 System

프로퍼티 상세

AsyncPostbackTypesToTranslate 공개적으로 프로퍼티

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
리턴 string

ContentTypesToLocalize 공개적으로 프로퍼티

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
리턴 System.Text.RegularExpressions.Regex

UrlsToExcludeFromProcessing 공개적으로 프로퍼티

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
리턴 System.Text.RegularExpressions.Regex