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

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

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