Configures translations for captions, headings, and any other messages.
Setting | Type | Optional | Description |
---|---|---|---|
language |
string |
false |
ISO language code |
message |
string |
false |
Message for translation |
schema_id |
reference( public.schemas ) |
false |
Reference to schema |
translation |
string |
false |
Translation |
String translation is specified in the funapp.translations
table in the format
language |
schema_id |
message |
translation |
---|---|---|---|
en |
admin |
User View |
User View |
es |
admin |
User View |
Vista de Usuario |
Now you can refer to the User View
translation in any part of the request - in arguments, in the header, in the names of fields, buttons and nested views
{
$id reference(public.user_views) @{
caption = {
schema: 'admin',
message: 'User View'
}
}
}:
SELECT
@type = 'form',
@title = { schema: 'admin', message: 'User View' },
@buttons = [{
caption: { schema: 'admin', message: 'Documentation' },
href: 'https://wiki.ozma.io/'
}],
name @{
caption = { schema: 'admin', message: 'Name' }
},
query @{
caption = { schema: 'admin', message: 'Query' }
}
FROM public.user_views
WHERE id = $id
in default attributes and in all other places where strings are used
/* public.field_attributes entry */
@{
caption = {
schema: 'admin',
message: 'User View'
}
}
The user interface will display the translation depending on the language selected by the user in the menu. If the translation into the selected language is not specified for a particular string, the contents of the message
string will be displayed.