Click or drag to resize
CultureHelperGetCultureInfo Method
Gets the culture info for specified culture. If culture code is invalid, then english culture is returned.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static CultureInfo GetCultureInfo(
	string cultureCode,
	bool useUserOverride = false
)

Parameters

cultureCode
Type: SystemString
Culture code
useUserOverride (Optional)
Type: SystemBoolean
If true, the user selected culture is used

Return Value

Type: CultureInfo
See Also