Default Culture Settings
Release 1.0 - ...
When a page is rendered by the iXperion Publication engine, the default culture for the render context is taken from the channel. The channel defines the culture.
This behavior can be overriden if desired. Culture specific information can be found on the following entities:
Channel
Defines the default culture for a render. Use the following vipers to read the channel locale;
Smartsite SXML | Copy Code |
---|---|
{locale.getculturefromchannel()} |
A user in iXperion has an culture. Use the following vipers to read the culture settings for a user;
Smartsite SXML | Copy Code |
---|---|
{locale.getculturefromuser()} |
The culture settings of a client browser can be used to setup the culture for the render context. Use the following vipers to fetch the culture settings from a user agent.
XML | Copy Code |
---|---|
{locale.getculturefromuseragent()} |
Specifying a culture
You can either use the setlocale viper or the se:locale macro to specify a culture. In order to override the default culture, use the locale.setlocale viper to set the culture for the current render context. In the following sample the locale settings sent by the user agent are used to set the current culture.
Smartsite SXML | Copy Code |
---|---|
{locale.setlocale(locale.getculturefromuseragent())} |