Tries to get a valid language from the browser preferences

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

Syntax

C#
public static CultureInfo GetBrowserCulture(
	int portalId
)
Visual Basic
Public Shared Function GetBrowserCulture ( 
	portalId As Integer
) As CultureInfo

Parameters

portalId
Type: System..::..Int32
Id of the current portal

Return Value

A valid CultureInfo if any is found

See Also