If your application is a multilingual application, the multilingual feature must also be managed in the windows/pages of user groupware. By default, the windows/pages of user groupware support English, American and French.

To include the windows or pages of user groupware in a multilingual application:

On the "Project" pane, in the "Project" group, click "User groupware".

Depending on the supported languages, select the integration mode:

For an English/French application, in the "Integration" tab, select "Automatic user groupware".

For an application supporting other languages, in the "Integration" tab, select "Custom user groupware".

Depending on the start mode of the application, define how the groupware will be started:

If the application must be run in the runtime language, in the "Runtime" tab, choose "Auto Run".

If the application must ask the user for the runtime language, in the "Runtime" tab, choose "Manual start".

Validate.

Translating the elements of the user groupware

By default, the elements (window, pages, messages, ...) found in the user groupware are available in English and in French.

To translate these elements into other languages, all you have to do is translate the different captions, messages, ... of these windows or pages (by using WDMSG if necessary to check out the messages to translate). WDMSG is an optional tool of WINDEV, WEBDEV and WINDEV Mobile used to check out and to check back in all the messages to translate.Note: Don't forget to check out the multilingual strings.

Run the application in the requested language

Two cases may occur:

The application is automatically started in the default language. The language can be changed thereafter. In this case, the groupware elements will also be run in the default language.

The application asks the user to choose the runtime language. In this case, you must:

Ask the user for the language in which the application must be run (via a specific window or page for example).

Open the first window or page for managing the user groupware with gpwOpen.

Example of custom start:

// Initialization code of project// Open the window for language selectionnLanguage is int = Open(WIN_Select_Language)// Configure the language for the applicationNation(nLanguage)// Start the first window of user groupwaregpwOpen()