CultureHelper SetPreferredCulture Method (String, Boolean, Boolean)Kentico 8.0 API Reference
Sets the user preferred culture.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

cultureCode
Type: OnlineSystem String
Culture code to set
setCookie
Type: OnlineSystem Boolean
Set the culture to a cookie as well
handleLifeTime
Type: OnlineSystem Boolean
If true, the life time support of the culture is allowed
See Also