C# Класс i18n.LocalizedApplication

Manages the configuration of the i18n features of your localized application.
Наследование: IRootServices
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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