CultureHelperSetPreferredCulture Method (String, Boolean, Boolean) |
Sets the user preferred culture.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static void SetPreferredCulture(
string cultureCode,
bool setCookie,
bool handleLifeTime
)
Parameters
- cultureCode
- Type: SystemString
Culture code to set - setCookie
- Type: SystemBoolean
Set the culture to a cookie as well - handleLifeTime
- Type: SystemBoolean
If true, the life time support of the culture is allowed
See Also