Localization

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Localization

WebUI supports localized page rendering based on browser (or session) language setting.

To enable localization support go to UI - Localization tab and press Select Languages button.

 

In the appeared form, select default language (which is used in the application) and languages which should be supported.

 

Manual translation

 

Table under Localization tab will already contains text labels that should be translated. To edit translation select cell, press Enter, enter translation and press Enter again.

 

Automatic translation

 

There is support for automatic translation using Deepl and other translation APIs. Press Auto translation button, select translation API and in the appeared dialog choose which languages should be processed.

At first time you will have to enter API key. It will be saved and use for subsequent translations.

 

Note that translation may take some time.

Translated strings that are identical to original strings are marked as "=" to prevent latter translation;

 

Registering translation API

 

To register custom translation API, implement TWebUITranslationAPI class descendant and register it using WebUIServer.RegisterTranslator method.

 

Using translation in Delphi code

 

To translate text in Delphi code use Request.Translate method.

 

Localization is disabled for Administrator user, because it conflicts with inline label editing.