Inspect the browser supplied language headers and find the best match from the supplied list
Namespace: DotNetNuke.Services.Localization.InternalAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
string BestCultureCodeBasedOnBrowserLanguages( IEnumerable<string> cultureCodes, string fallback ) |
Visual Basic |
---|
Function BestCultureCodeBasedOnBrowserLanguages ( cultureCodes As IEnumerable(Of String), fallback As String ) As String |
Parameters
- cultureCodes
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
The codes to search for a match
- fallback
- Type: System..::..String
The code to return if no good match is found