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 CopyCode image Copy Code
{locale.getculturefromchannel()}
User
A user in iXperion has an culture. Use the following vipers to read the culture settings for a user;
Smartsite SXML CopyCode image Copy Code
{locale.getculturefromuser()}
User agent
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 CopyCode image 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 CopyCode image Copy Code
{locale.setlocale(locale.getculturefromuseragent())}
Use the se:locale macro to set the culture for (part of) the SXML. Once the se:locale macro is out of scope, the original culture will be reset.