MaestroThe UI design product. | Form Builder | 21.11 This feature was updated in 21.11.
Maestro allows you to translate form's elements into different languages, including right to left languages.
To add a new language:
The Translation windows lists the following details:
de
. You can use the search functionality to find the Property Path you want to translate.
This option is shown only when a non-default language is selected.
This option is shown only when a non-default language is selected.
This option is shown only when a non-default language is selected.
To manage a language:
The window lists keys for objects within the form, in the Property Path column, that are mapped to labels based on the selected language, the Default Value. The window opens with the default language selected, for example, English.
You are not able to edit the default language in the Translation window, as it is directly derived from the form's component properties.
If you have a component selected when you click Translation, the list is scrolled to the selected Property Path. The scroll position remains as you switch between languages.
This option is shown only when a new language is added.
This option is shown only when a new language is added.
Now, when you have set up the new language, you can configure the form with the Select Language component. The message is shown using a Form.showProgress
call, for example, Form.showProgress("Loading...")
. You can right click the string in the rule and turn it into a translatable key. For the save, cancel and submit calls you can change this value on the root form item and it would also be a translatable key.
Since Maestro 21.11, you have ability to specify the source of a translation CSV so that it can be stored externally to the form. A service or URL can be used to load the translation. This allows users to maintain their translations outside the form without republishing the form to push new translated texts.
You can use the Translation.fetch()
function to load the translation for the specified language code. If the translation loads, the interface will refresh with the translation defined by the current locale. If the translation doesn't load, an error will appear in the JavaScript console. A simple way to implement it in a form is to add a button that calls Translation.fetch("myLanguageCode", false, "/web-plugin/resources/mynewCSC.csv")
.This translates the form based on a translation file that's at an external URL. In this example, it's in a portal resource on the Manager server, but it could be anywhere.
Next, learn how to mark for translation.