The LocalizationHandler type exposes the following members.

Methods

  Name Description
Public method CheckCultureName
Handles special cases of CultureNames - WebPartManager admin can sometimes cause doubling the same Request parameter (language), which results in something like this: en-US, en-US.
Public method FindLanguageByCultureName
Finds language by culture name.
Public method GetCultureName
Gets the culture name.
Public method GetCurrentLanguageId
Gets current language Id.
Public method GetDefaultCultureName
Gets default culture name.
Public method GetDefaultLanguageEntity
Gets default language entity.
Public method GetDefaultLanguageId
Gets default language Id.
Protected method GetLanguageSettings
Get language settings.
Public method GetLocalizationCultureName
Retrieves a localization "subfolder" VALUE (part of the path that referes to the currently active language) from either URL, HttpContext or CurrentThread, depending on a end-user scenario. Values stored in the URL have priority over the values stored in HttpContext. If a custom localization scheme is used, developer has to manually set the CurentThread.CurrentCulture in BasePage.InitializeCulture.
Public method GetLocalizationRootPath
Returns the localization root path.
Public method GetLocalizationRootUrl
Returns the root path for the localization operations. The complete path is produced by appending the localization subfolder to this path.
Public method GetLocalizationSpecificUrlPart
Retrieves localization-specific part of the URL path that is varies accross different localizations (for example, /lng/en-US).
Public method GetLocalizationSubFolderKey
Retrieves a localization "subfolder" KEY from the application settings.
Public method InitializeCulture
Initializes the current culture according to portal-specific localization rules. Used on the BasePage in the InitializeCulture method. Note that overriden implementations of the BasePage.InitializeCulture may choose not to call this method!
Public method IsLanguageOk
Checks if the language is registered with the current portal instance.
Public method ResetDefaultCultureName
Resets the default language name.
Public method ResetDefaultLanguageId
Resets the default language id.
Public method RewriteUrl(String)
Rewrites the URL according to the localization rules and the currently active culture. By default, MonoX localized URLs has the string of the form "/lng/en-US" and MonoX extracts the culture name from such strings. However, the end user can choose the custom scheme, in case of which the InitializeCulture in the BasePage has to be overriden to set Thread.CurrentCulture and CurrentUICulture to the desired value, and then the ILocalizationUrlRewriter can be implemented to reflect the custom rewriting rules.
Public method RewriteUrl(String, String)
Rewrites the URL according to the localization rules and the currently active culture. By default, MonoX localized URLs has the string of the form "/lng/en-US" and MonoX extracts the culture name from such strings. However, the end user can choose the custom scheme, in case of which the InitializeCulture in the BasePage has to be overriden to set Thread.CurrentCulture and CurrentUICulture to the desired value, and then the ILocalizationUrlRewriter can be implemented to reflect the custom rewriting rules.
Public method RewriteUrl(String, String, Boolean)
Rewrites the URL according to the localization rules and the currently active culture. By default, MonoX localized URLs has the string of the form "/lng/en-US" and MonoX extracts the culture name from such strings. However, the end user can choose the custom scheme, in case of which the InitializeCulture in the BasePage has to be overriden to set Thread.CurrentCulture and CurrentUICulture to the desired value, and then the IloCalizationUrlRewriter can be implemented to reflect the custom rewriting rules.

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

See Also