Table of Contents

Reference culture and native variables

Reference culture

What is a reference culture?

The reference culture is the language in which you initially wrote your template, before you added any eventual translations.

How to define the reference culture of a template?

The reference culture is configured at design time:

  • Select the root item in the tree-view of the template report and go to Properties:

Editing the default culture of the template report

  • Edit the "Culture" property in the "Globalization" section:

Editing the default culture of the template report

How is the reference culture used?

The reference culture is important for having consistent reports : for instance it specifies in what language the native variables should be localized (and prevent having mixed content, by using hardcoded strings in some places and using the user's locale in others)

Native variables

What are native variables?

Native variables are available when editing a text label: {PageNofM} is a good example.

Example of native variable

How do the native variables behave?

The culture used for localizing native Stimulsoft variables is inferred as follows:

  1. If no default culture is specified in the template, the culture of the end user will be used for localizing the native variables.
  2. If a default culture is specified, the culture of the end user will be explicitly used only if at least one string have been translated, for that language, in the template.
  3. Otherwise the default culture specified in the properties of the template will be used.