The Localization type exposes the following members.

Methods

  NameDescription
Public methodStatic memberActiveLanguagesByPortalID
Public methodStatic memberAddLanguagesToPortal
Public methodStatic memberAddLanguageToPortal
Public methodStatic memberAddLanguageToPortals
Public methodStatic memberAddTranslatorRole
Public methodStatic memberBestCultureCodeBasedOnBrowserLanguages(IEnumerable<(Of <<'(String>)>>))
Public methodStatic memberBestCultureCodeBasedOnBrowserLanguages(IEnumerable<(Of <<'(String>)>>), String)
Public methodStatic memberConvertLegacyTimeZoneOffsetToTimeZoneInfo
Converts old TimeZoneOffset to new TimeZoneInfo.
Public methodStatic memberDeleteLanguage(Locale)
Public methodStatic memberDeleteLanguage(Locale, Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetBrowserCulture
Tries to get a valid language from the browser preferences
Public methodStatic memberGetCultureLanguageID
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.
Public methodStatic memberGetEnabledLocales Obsolete.
Public methodStatic memberGetExceptionMessage(String, String)
Public methodStatic memberGetExceptionMessage(String, String, array<Object>[]()[][])
Public methodGetFixedCurrency
Public methodGetFixedDate
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetLanguageDisplayMode
Public methodStatic memberGetLocale(String) Obsolete.
Public methodStatic memberGetLocale(Int32, String) Obsolete.
Public methodStatic memberGetLocaleByID Obsolete.
Public methodStatic memberGetLocaleName
Public methodStatic memberGetLocales Obsolete.
Public methodStatic memberGetPageLocale
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
Public methodStatic memberGetResourceFile
Public methodStatic memberGetResourceFileName
Public methodStatic memberGetSafeJSString(String)
this function will escape reserved character fields to their "safe" javascript equivalents
Public methodStatic memberGetSafeJSString(String, String)
this function will escape reserved character fields to their "safe" javascript equivalents
Public methodStatic memberGetString(String)
GetString gets the localized string corresponding to the resource key
Public methodStatic memberGetString(String, PortalSettings)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetString(String, String)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetString(String, Control)
Public methodStatic memberGetString(String, String, Boolean)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetString(String, String, String)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetString(String, String, PortalSettings, String)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetString(String, String, PortalSettings, String, Boolean)
GetString gets the localized string corresponding to the resourcekey
Public methodStatic memberGetStringUrl
GetStringUrl gets the localized string corresponding to the resourcekey
Public methodStatic memberGetSupportedLocales Obsolete.
Public methodStatic memberGetSystemMessage(PortalSettings, String)
Gets a SystemMessage.
Public methodStatic memberGetSystemMessage(PortalSettings, String, UserInfo)
Gets a SystemMessage.
Public methodStatic memberGetSystemMessage(PortalSettings, String, String)
Gets a SystemMessage.
Public methodStatic memberGetSystemMessage(String, PortalSettings, String, UserInfo)
/// Gets a SystemMessage.
Public methodStatic memberGetSystemMessage(PortalSettings, String, UserInfo, String)
Gets a SystemMessage.
Public methodStatic memberGetSystemMessage(PortalSettings, String, String, ArrayList)
Gets a SystemMessage passing extra custom parameters to personalize.
Public methodStatic memberGetSystemMessage(PortalSettings, String, UserInfo, String, ArrayList)
Gets a SystemMessage passing extra custom parameters to personalize.
Public methodStatic memberGetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList)
Gets a SystemMessage passing extra custom parameters to personalize.
Public methodStatic memberGetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList, String, Int32)
Gets a SystemMessage passing extra custom parameters to personalize.
Public methodStatic memberGetSystemMessage(String, PortalSettings, String, UserInfo, String, ArrayList, IDictionary, String, Int32)
Gets a SystemMessage passing extra custom parameters to personalize.
Public methodStatic memberGetTimeZones Obsolete.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoadCultureDropDownList(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

Public methodStatic memberLoadCultureDropDownList(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

Public methodStatic memberLoadCultureDropDownList(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

Public methodStatic memberLoadCultureInListItems

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

Public methodStatic memberLoadTimeZoneDropDownList Obsolete.
Public methodStatic memberLocaleIsEnabled(String) Obsolete.
Public methodStatic memberLocaleIsEnabled(Locale) Obsolete.
Public methodStatic memberLocalizeControlTitle(IModuleControl)
Localizes ModuleControl Titles
Public methodStatic memberLocalizeControlTitle(String, String, String) Obsolete.
Public methodStatic memberLocalizeDataGrid
LocalizeDataGrid creates localized Headers for a DataGrid
Public methodStatic memberLocalizeDetailsView
Localizes headers and fields on a DetailsView control
Public methodStatic memberLocalizeGridView
Localizes headers and fields on a GridView control
Public methodStatic memberLocalizePortalSettings Obsolete.
Public methodStatic memberLocalizeRole
Localizes the "Built In" Roles
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRemoveLanguageFromPortal(Int32, Int32)
Public methodStatic memberRemoveLanguageFromPortal(Int32, Int32, Boolean)
Public methodStatic memberRemoveLanguageFromPortals(Int32)
Public methodStatic memberRemoveLanguageFromPortals(Int32, Boolean)
Public methodStatic memberRemoveLanguagesFromPortal
Public methodStatic memberSaveLanguage(Locale)
Public methodStatic memberSaveLanguage(Locale, Boolean)
Public methodStatic memberSetLanguage
Public methodStatic memberSetThreadCultures
Sets the culture codes on the current Thread
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberUseBrowserLanguage Obsolete.
Public methodStatic memberUseLanguageInUrl Obsolete.

Extension Methods

  NameDescription
Public Extension MethodToJson
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.)

See Also