The LocalizationHandler type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LocalizationHandler |
Constructor.
|
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.
|
|
FindLanguageByCultureName |
Finds language by culture name.
|
|
GetCultureName |
Gets the culture name.
|
|
GetCurrentLanguageId |
Gets current language Id.
|
|
GetDefaultCultureName |
Gets default culture name.
|
|
GetDefaultLanguageEntity |
Gets default language entity.
|
|
GetDefaultLanguageId |
Gets default language Id.
|
|
GetLanguageSettings |
Get language settings.
|
|
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.
|
|
GetLocalizationRootPath |
Returns the localization root path.
|
|
GetLocalizationRootUrl |
Returns the root path for the localization operations. The complete path is produced by appending the localization subfolder to this path.
|
|
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 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!
|
|
IsLanguageOk |
Checks if the language is registered with the current portal instance.
|
|
ResetDefaultCultureName |
Resets the default language name.
|
|
ResetDefaultLanguageId |
Resets the default language id.
|
|
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.
|
|
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.
|
|
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 | |
---|---|---|
ConvertTo(Type) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)()()()() | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)(TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
GetCurrentStackTrace |
Gets current stack trace information.
(Defined by ObjectExtension.) |
|
GetDebugInformation |
Gets the debug information for currently executing code.
(Defined by ObjectExtension.) |
|
GetExecutingMethodName |
Gets the executing method name.
(Defined by ObjectExtension.) |
|
GetPropertyType |
Gets a property type.
(Defined by ObjectExtension.) |
|
GetPropertyValue |
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.) |
|
PropertyExists |
Check if property exists.
(Defined by ObjectExtension.) |
|
SetPropertyValue |
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.) |
Properties
Name | Description | |
---|---|---|
DependencyInjectionFactory |
Gets or sets the dependency injection factory instance.
|