...
To localize static interface elements, such as welcome messages, informational or warning messages, some other kind of messages, there are two tables implemented containing source messages and their translations,
- the Source Messages (source_message) table - this table contains original messages in English;
- the Messages (message) table - this table contains localized messages in the user's languages (Russian, Hindi, etc).
source_message
Field | Type | Description |
---|---|---|
id | Big Integer | The ID of the message. |
category | String | The category of the message (for example, app). |
message | Text | The text of the message. |
message
Field | Type | Description |
---|---|---|
id | Reference | Reference to the source_message table. |
language | String | Two-symbol name of the language (ru, en, etc). |
translation | Text | The translated message. |
These two tables are bound by ID; it means that every message in the source_message table has a unique ID, and its translated version in the message table has the same ID.
For example, the message "Login" in the source_message table has ID 15596431050000002. Moreover, the message "Логин" has the following prerequisites in the message table:
ID | 15596431050000002 |
language | ru |
So, if you want to add some new messages, you have to add them to both tables as well, in compliance with IDs order and in all the languages you need.
To do this, please complete the steps below:
- Navigate to {your_instance_url}/list/message;
- Click New, fill in the form, and click Save.
Info |
---|
Please keep in mind that the IDs of the original message in the source_message table and the localized message in the message table must be the same to prevent malfunction. Also, the language field must be populated, as well. |
Warning |
---|
Please do not change original messages in the Source Messages (source_message) table, it can cause malfunction on the instance. If you need to make changes in any source message, then create a copy of it in the Messages (message) table with the desired text and fill in the Language field with the 'en' value. |
...