C# Class i18n.EarlyUrlLocalizer

Inheritance: IEarlyUrlLocalizer
Afficher le fichier Open project: turquoiseowl/i18n

Méthodes publiques

Свойство Type Description
m_httpHeadersContainingUrls string[]
m_regexHtmlUrls System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode Description
EarlyUrlLocalizer ( IUrlLocalizer urlLocalizer ) : System
ProcessIncoming ( System context ) : void

Implements the Early Url Localization logic.

ProcessOutgoing ( string entity, string langtag, System context ) : string

Méthodes protégées

Méthode Description
LocalizeUrl ( System context, string url, string langtag, Uri requestUrl, bool incomingUrl ) : string

Helper for localizing an individual URL string for a particular langtag value and URL of the current request.

RedirectWithLanguage ( System context, string urlNonlocalized, string langtag, IUrlLocalizer m_urlLocalizer ) : void

Method Details

EarlyUrlLocalizer() public méthode

public EarlyUrlLocalizer ( IUrlLocalizer urlLocalizer ) : System
urlLocalizer IUrlLocalizer
Résultat System

LocalizeUrl() protected méthode

Helper for localizing an individual URL string for a particular langtag value and URL of the current request.
protected LocalizeUrl ( System context, string url, string langtag, Uri requestUrl, bool incomingUrl ) : string
context System
url string Subject URL to be localized.
langtag string Language with which to localize the URL.
requestUrl System.Uri URL of the current HTTP request being handled.
incomingUrl bool
Résultat string

ProcessIncoming() public méthode

Implements the Early Url Localization logic.
public ProcessIncoming ( System context ) : void
context System
Résultat void

ProcessOutgoing() public méthode

public ProcessOutgoing ( string entity, string langtag, System context ) : string
entity string
langtag string
context System
Résultat string

RedirectWithLanguage() protected static méthode

protected static RedirectWithLanguage ( System context, string urlNonlocalized, string langtag, IUrlLocalizer m_urlLocalizer ) : void
context System
urlNonlocalized string
langtag string
m_urlLocalizer IUrlLocalizer
Résultat void

Property Details

m_httpHeadersContainingUrls public_oe static_oe property

public static string[] m_httpHeadersContainingUrls
Résultat string[]

m_regexHtmlUrls public_oe static_oe property

Regex for finding and replacing urls in html.
public static Regex,System.Text.RegularExpressions m_regexHtmlUrls
Résultat System.Text.RegularExpressions.Regex