Inspect the browser supplied language headers and find the best match from the supplied list

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

Syntax

C#
string BestCultureCodeBasedOnBrowserLanguages(
	IEnumerable<string> cultureCodes
)
Visual Basic
Function BestCultureCodeBasedOnBrowserLanguages ( 
	cultureCodes As IEnumerable(Of String)
) As String

Parameters

cultureCodes
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
The codes to search for a match

Return Value

Best matching culture code, or SystemLocale if no good match found

See Also