Skip to main content

Translations

What is a Translation ?

Simplicité is a multi-language application. The Translations object is used to configure the different labels per language displayed in the application.

Translations Configuration

Most of the configuration objects that are displayed in the application have multiple Translations linked to it e.g. Objects, Object Fields, Domains, Actions, Links, View, Searches, etc.

Depending on the object, the Translations have different configuration fields.

Object

FieldDescription
LanguageUser language
TranslationThe object's label (singular) - used in forms
PluralThe object's label (plural) - used in lists
User helpThe object's help text - displayed in under the help icon in the list's or form's header

Field / Object Field

FieldDescription
LanguageThe language of the translation.
TranslationThe field's label
Plural unused for fields
Simple help Content added to a help button next to the field on the object's form
Short label on lists Overrides the label for the field in lists
Placeholder The field's placeholder - used in forms
 Column helpContent added to a help button next to the column in the list
TooltipContent displayed when the field label is hovered

Link translations are used to override an object's translation when displayed in a linked list context.

FieldDescription
LanguageThe language of the translation.
TranslationThe link's label
Example

Action

FieldDescription
LanguageThe language of the translation.
TranslationThe action's label
TooltipContent displayed when the action button is hovered

Search translations are used in the context of preset searches. They are also the default label given to a View Area when the preset search is used in a View.

FieldDescription
LanguageThe language of the translation.
TranslationThe search's label
Example

Using the Java API

The setLabel method of the Java API can be used to set the translations for an Object, Link, Field, Action, etc.

Example : Customizing an object's label for a specific user group

public void postLoad() {
if (getGrant().hasResponsibility("USER_GROUP"))
setLabel("My Custom Object Label");
}