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

Namespace: DotNetNuke.Services.Localization.Internal
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
CultureInfo GetPageLocale(
	PortalSettings portalSettings
)
Visual Basic
Function GetPageLocale ( 
	portalSettings As PortalSettings
) As CultureInfo

Parameters

portalSettings
Type: DotNetNuke.Entities.Portals..::..PortalSettings
Current PortalSettings

Return Value

A valid CultureInfo

See Also