-
Notifications
You must be signed in to change notification settings - Fork 0
Languages
This page explains how to handle language settings in a Safecor based system.
The product definition includes a default language setting and a translations list. These values are defined in the Topology file in the product section.
These are the default values that represent the initial state of a system.
The language of the graphical user interface and the system messages presented to the user should be the same that the language defined as the default language. The language of the debug messages and internal logs can be different.
If translations are available to the end user, they can be managed in different ways.
A configuration can be created and encoded in the Topology (see Configurations). It is also possible to define the settings
in the kernel's command line with the keyword language.
For example: language=fr.
If there are translations available, the language can be managed only in the graphical user interface but any modification should be done using Safecor messages and Api so they are propagated to all the system's components.
-
Api.get_languages_list()- query the available languages. The list is the same as the one defined in the Topology. -
Api.get_default_language()- query the default language defined in the Topology or in the configuration (see above). -
Api.get_current_language()- query the language currently used in the system, which can be the default one or the user's choice. -
Api.set_current_language()- sets the language, typically initiated by a users's action.