Label tagging element

Use the Label tagging element to display localized text strings in your generated documents. Labels let you build language-neutral templates. The text is automatically displayed, as long as a translation exist in the selected language.

Prerequisites

Bind Label tagging element to label data

To use the Label tagging element, select a data field that contains label translations or input the label code.

  1. Select the Label tagging element to view its properties.
  2. In the Properties pane, locate the Value property and choose the value button to open the value binding panel.
  3. Under Source, select the data section that contains your label translations. Under Path, navigate the data structure tree and select the field that contains translated text.
  4. Choose the OK button (OK icon) to confirm the binding.
  5. Select Preview language in the Preview group on the Docentric ribbon tab to change the preview language. The label text will automatically update to show the translation for the selected language.
  6. Review results in Live Preview pane with different preview languages to verify all translations are correct.
TIP

Use the preview language selector to test your label translations during template design. This ensures that labels, date formatting, and number formatting all adapt correctly to each target language and culture.

Properties pane showing the Label tagging element with the Value property for selecting a label, including the Enter label code option. Live preview should selected label translated to German language as per Preview selection language in the ribbon.

NOTE

The Enter label code data source option is not supported in the current version of Docentric CE. Use label translations included in the Data Source Package (DDSP) instead.

Apply visual formatting

You can specify visual formatting rules on the Label tagging element to control the visual appearance of related content in the generated document in a dynamic, data-driven manner. For detailed steps, see Apply visual formatting to tagging elements.

Next steps