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