The LocalizationUtility type exposes the following members.

Methods

  Name Description
Public method Static member 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 Static member DecodeAjax
Decodes an input string to its proper format when used with Ajax (all ajax callbacks are encoded in utf-8).
Public method Static member FindLanguageByCultureName
Finds language by culture name.
Public method Static member GetCultureName
Gets the culture name.
Public method Static member GetCurrentLanguageCultureName
Gets current language CultureName.
Public method Static member GetCurrentLanguageId()()()()
Gets current language id.
Public method Static member GetCurrentLanguageId(String)
Gets current language Id.
Public method Static member GetDefaultCultureName
Gets default culture name.
Public method Static member GetDefaultLanguageEntity
Gets default language entity.
Public method Static member GetDefaultLanguageId
Gets default language Id.
Public method Static member 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 Static member GetLocalizationSpecificUrlPart
Retrieves localization-specific part of the URL path that is varies accross different localizations (for example, /lng/en-US).
Public method Static member GetLocalizationSubFolderKey
Retrieves a localization "subfolder" KEY from the application settings.
Public method Static member InitializeCulture
Initializes culture by calling the configured provider.
Public method Static member IsLanguageOk
Checks if the language is registered with the current portal instance.
Public method Static member ResetDefaultCultureName
Resets the default language name.
Public method Static member ResetDefaultLanguageId
Resets the default language id.
Public method Static member RewriteLink(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 Static member RewriteLink(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.
Public method Static member RewriteLink(String, String)
Rewrites the URL according to the localization rules and a culture name passed as a parameter. 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 Static member RewriteLink(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.

See Also