The Localization type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | ActiveLanguagesByPortalID | |
![]() ![]() | AddLanguagesToPortal | |
![]() ![]() | AddLanguageToPortal | |
![]() ![]() | AddLanguageToPortals | |
![]() ![]() | AddTranslatorRole | |
![]() ![]() | BestCultureCodeBasedOnBrowserLanguages(IEnumerable<(Of <<'(String>)>>)) | |
![]() ![]() | BestCultureCodeBasedOnBrowserLanguages(IEnumerable<(Of <<'(String>)>>), String) | |
![]() ![]() | ConvertLegacyTimeZoneOffsetToTimeZoneInfo |
Converts old TimeZoneOffset to new TimeZoneInfo.
|
![]() ![]() | DeleteLanguage(Locale) | |
![]() ![]() | DeleteLanguage(Locale, Boolean) | |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetBrowserCulture |
Tries to get a valid language from the browser preferences
|
![]() ![]() | GetCultureLanguageID |
Maps the culture code string into the corresponding language ID in the
database. In case there is no language defined in the systen with the
passed code, -1 (NullInteger) is returned.
|
![]() ![]() | GetEnabledLocales | Obsolete. |
![]() ![]() | GetExceptionMessage(String, String) | |
![]() ![]() | GetExceptionMessage(String, String, array<Object>[]()[][]) | |
![]() | GetFixedCurrency | |
![]() | GetFixedDate | |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetLanguageDisplayMode | |
![]() ![]() | GetLocale(String) | Obsolete. |
![]() ![]() | GetLocale(Int32, String) | Obsolete. |
![]() ![]() | GetLocaleByID | Obsolete. |
![]() ![]() | GetLocaleName | |
![]() ![]() | GetLocales | Obsolete. |
![]() ![]() | GetPageLocale |
Detects the current language for the request.
The order in which the language is being detect is:
1. QueryString
2. Cookie
3. User profile (if request is authenticated)
4. Browser preference (if portal has this option enabled)
5. Portal default
6. System default (en-US)
At any point, if a valid language is detected nothing else should be done
|
![]() ![]() | GetResourceFile | |
![]() ![]() | GetResourceFileName | |
![]() ![]() | GetSafeJSString(String) |
this function will escape reserved character fields to their "safe" javascript equivalents
|
![]() ![]() | GetSafeJSString(String, String) |
this function will escape reserved character fields to their "safe" javascript equivalents
|
![]() ![]() | GetString(String) |
GetString gets the localized string corresponding to the resource key
|
![]() ![]() | GetString(String, PortalSettings) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetString(String, String) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetString(String, Control) | |
![]() ![]() | GetString(String, String, Boolean) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetString(String, String, String) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetString(String, String, PortalSettings, String) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetString(String, String, PortalSettings, String, Boolean) |
GetString gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetStringUrl |
GetStringUrl gets the localized string corresponding to the resourcekey
|
![]() ![]() | GetSupportedLocales | Obsolete. |
![]() ![]() | GetSystemMessage(PortalSettings, String) |
Gets a SystemMessage.
|
![]() ![]() | GetSystemMessage(PortalSettings, String, UserInfo) |
Gets a SystemMessage.
|
![]() ![]() | GetSystemMessage(PortalSettings, String, String) |
Gets a SystemMessage.
|
![]() ![]() | GetSystemMessage(String, PortalSettings, String, UserInfo) |
/// Gets a SystemMessage.
|
![]() ![]() | GetSystemMessage(PortalSettings, String, UserInfo, String) |
Gets a SystemMessage.
|
![]() ![]() | GetSystemMessage(PortalSettings, String, String, ArrayList) |
Gets a SystemMessage passing extra custom parameters to personalize.
|
![]() ![]() | GetSystemMessage(PortalSettings, String, UserInfo, String, ArrayList) |
Gets a SystemMessage passing extra custom parameters to personalize.
|
![]() ![]() | GetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList) |
Gets a SystemMessage passing extra custom parameters to personalize.
|
![]() ![]() | GetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList, String, Int32) |
Gets a SystemMessage passing extra custom parameters to personalize.
|
![]() ![]() | GetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList, IDictionary, String, Int32) |
Gets a SystemMessage passing extra custom parameters to personalize.
|
![]() ![]() | GetTimeZones | Obsolete. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | LoadCultureDropDownList(DropDownList, CultureDropDownTypes, String) | LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file, for the current portal |
![]() ![]() | LoadCultureDropDownList(DropDownList, CultureDropDownTypes, String, Boolean) | LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file. This overload allows us to display all installed languages. To do so, pass the value True to the Host parameter |
![]() ![]() | LoadCultureDropDownList(DropDownList, CultureDropDownTypes, String, String, Boolean) | LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file This overload allows us to filter a language from the dropdown. To do so pass a language code to the Filter parameter This overload allows us to display all installed languages. To do so, pass the value True to the Host parameter |
![]() ![]() | LoadCultureInListItems | LoadCultureDropDownList loads a DropDownList with the list of supported cultures based on the languages defined in the supported locales file This overload allows us to filter a language from the dropdown. To do so pass a language code to the Filter parameter This overload allows us to display all installed languages. To do so, pass the value True to the Host parameter |
![]() ![]() | LoadTimeZoneDropDownList | Obsolete. |
![]() ![]() | LocaleIsEnabled(String) | Obsolete. |
![]() ![]() | LocaleIsEnabled(Locale) | Obsolete. |
![]() ![]() | LocalizeControlTitle(IModuleControl) |
Localizes ModuleControl Titles
|
![]() ![]() | LocalizeControlTitle(String, String, String) | Obsolete. |
![]() ![]() | LocalizeDataGrid |
LocalizeDataGrid creates localized Headers for a DataGrid
|
![]() ![]() | LocalizeDetailsView |
Localizes headers and fields on a DetailsView control
|
![]() ![]() | LocalizeGridView |
Localizes headers and fields on a GridView control
|
![]() ![]() | LocalizePortalSettings | Obsolete. |
![]() ![]() | LocalizeRole |
Localizes the "Built In" Roles
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | RemoveLanguageFromPortal(Int32, Int32) | |
![]() ![]() | RemoveLanguageFromPortal(Int32, Int32, Boolean) | |
![]() ![]() | RemoveLanguageFromPortals(Int32) | |
![]() ![]() | RemoveLanguageFromPortals(Int32, Boolean) | |
![]() ![]() | RemoveLanguagesFromPortal | |
![]() ![]() | SaveLanguage(Locale) | |
![]() ![]() | SaveLanguage(Locale, Boolean) | |
![]() ![]() | SetLanguage | |
![]() ![]() | SetThreadCultures |
Sets the culture codes on the current Thread
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | UseBrowserLanguage | Obsolete. |
![]() ![]() | UseLanguageInUrl | Obsolete. |
Extension Methods
Name | Description | |
---|---|---|
![]() | ToJson |
Extension method on object that serializes the value to Json.
Note the type must be marked Serializable or include a DataContract attribute.
(Defined by JsonExtensionsWeb.) |