For the complete documentation index, see llms.txt. This page is also available as Markdown.

Translations

The “Translations” tab

Tab Translations, available in the application editor, allows adding translations for the application, compound components, and business components. Here you can also add keys that override the default application content (details in the chapter Platform translation keys).

This tab also allows you to add or modify validator messages associated with components (details in the chapters Complex validations and Script validators).

Figure 1. Application editor window - "Translations" tab

Editing the key and value

After selecting a cell in the table, you can edit both the key and the translation values for individual languages.

In the case of multiline values, the edit field will automatically expand to show the entire content.

Figure 2. Editing translations

Deleting a key

To delete the entire translation row, click the icon located to the right of the given key.

Figure 3. Deleting a translation key

After deleting a key, a notification will appear at the bottom of the screen with the option to undo the action.

Figure 4. Notification with the option to undo key deletion

Adding a key

It is possible to add a translation for every application element that displays text - titles, descriptions, labels, validation messages, and content returned by external services.

Keys corresponding to validation error messages are added automatically when a validator is added. The exception is script validators, for which the key must be added manually.

To add a new key, use the button Add key located above the language columns.4

Figure 5. Button used to add a new translation key

Clicking adds an empty row in which you must fill in at least the key name (column KEY). If the field remains empty, the system will automatically assign the name:

  • empty

  • empty.copy

  • empty.copy1 and subsequent ones, if needed.

Figure 6. Row after adding a key and not filling in its name

Selecting the default language (tag)

The default language can be set in the table header. This option is available only while editing the process.

The default language is Polish.

To set a language as default, click the star icon next to the language code. A yellow star indicates the currently selected default language.

Figure 7. Selecting the translation language

Filtering empty translations

To hide keys without translations, click the icon located in the column KEY.

The active filter is indicated by a crossed-out “eye” symbol . Additionally, information about the number of hidden keys is displayed .


Searching translations

The search works both by key names and by translation values.

Figure 8. Searching translations

If no results are found, the following message is displayed:

At this point, the user is also offered the option to add a new key. After adding the key, the search field is automatically cleared.


Adding and editing languages

To add a new language, click the add new column button located on the right side of the table.

Illustration 9. Button for adding a new translation language

The language name (tag) can be changed by clicking its header.

Language code should comply with the standard ISO 639, written in lowercase. The list of supported codes is available at: https://www.oracle.com/technetwork/java/javase/java8locales-2095355.html


Determining the language used when opening the application

When taking up the application for completion, the system determines the language in the following order:

1. The “locale” parameter in the URL

If the input address contains the parameter locale, and the template contains translations for the specified language, then that language will be used.

Example:


2. Browser accepted languages (Accept-Language)

If the URL parameter is not available, and in the Webforms configuration the parameter:

then the system will take the language from the header Accept-Language, provided that the template has the appropriate translations.

Example:


3. Template default language

If none of the above conditions is met, the template's default language, set in Eximee Designer.

Last updated

Was this helpful?