This table explains how to create and manage a multilingual project.
| | | | | | |
Project elements | Project | Window, pages and controls (text, input masks and images) | Reports and controls (text, display mask and images) | Help system (hlp or chm) | Code messages (code, procedures, classes) | WINDEV messages |
Action to perform |
Choosing the different languages | The project languages are selected in the project description:- On the "Project" pane, in the "Project" group, click "Description".
- Select the "Language" tab.
The selected languages are taken into account for all the closed elements. The opened elements must be closed and re-opened. | Automatic if the language is managed in the project. Windows shared among several applications that do not use the same languages: Select the additional language in the window description ("Language" tab). | Automatic if the language is managed in the project. Reports shared between several applications that do not use the same languages: Select the additional language in the report description ("Language" tab). | Automatic if the language is managed in the project. Help system shared between several projects that do not use the same languages: Select the additional language in the description of the help system ("Language" tab). | Automatic if the language is managed in the project. Classes and procedures shared between several projects: Select the additional language in the language window (right click in the "Project explorer" pane, "Language" option). | |
Creating a new control | | By default, only the caption of runtime language is specified. The caption of the control must be translated into the supported languages. | By default, only the caption of runtime language is specified. The caption of the control must be translated into the supported languages. | The title of the new pages and the keywords are automatically created in English. | | |
Translation without specific tool (in WINDEV directly) | | The translation must be performed in all description windows of windows and controls. | The translation must be performed in all description windows of reports and controls. | For the summary and the indexes: the translation must be performed in the description windows of the page. For the content of help page: the translation must be performed after the change of display language. | The translation must be performed in the message editor (Ctrl + T). | |
Translating messages with WDMSG/WDINT | | Extract all messages to translate with WDMSG, translate the file generated by WDMSG and reintegrate the translated messages. | Extract and translate with WDINT. Generate a WDM file. |
Display in the editor in a given language | Change the display language for all project elements: on the "Display" pane, in the "Options" group, expand "Language displayed"
Caution: the default runtime language of project is not modified. | Automatic if the display language of project was modified. To modify the display language for all project elements: on the "Display" pane, in the "Options" group, expand "Language displayed" (*) | Automatic if the display language of project was modified. To modify the display language for all project elements: on the "Display" pane, in the "Options" group, expand "Language displayed" (*) | Automatic if the display language of project was modified To modify the display language for all project elements: on the "Display" pane, in the "Options" group, expand "Language displayed" (*) | Automatic if the display language of project was modified. To modify the display language for all project elements: on the "Display" pane, in the "Options" group, expand "Language displayed" (*) | |
Test | The project test is run in the default language of project. | The window test is run in the default language of project. | The report test is run in the default language of project. | Compilation and test run in the display language of help system. You must create as many help files as the number of languages. | During a test (window, project or report), message displayed in the default runtime language of project. | Define the WDM file associated with each language in the project description:- On the "Project" pane, in the "Project" group, click "Description".
- Select the "Language" tab.
|
Executable | Created in the default project language. To change this language as soon as the executable is run, use Nation in the initialization code of the project. Caution: the language will be modified from the call to Nation and until the next call to Nation. | Windows displayed in the executable language. To change the display language of a window, use Nation before opening the window. Caution: the language will be modified from the call to Nation and until the next call to Nation. | Reports printed in the default executable language. To change the print language of a report, use: | Open the help file corresponding to the desired language (WHelp). | Messages displayed in the current runtime language. To change the language when displaying the message, use Nation. Caution: the language will be modified from the call to Nation and until the next call to Nation. |
Deployed site | Created in the default project language. To change this language as soon as the deployed site is run, use Nation in the initialization code of the project. Caution: the language will be modified from the call to Nation and until the next call to Nation. | Pages displayed in the project language. To change the display language of a page, use Nation before opening the page. Caution: the language will be modified from the call to Nation and until the next call to Nation. | Reports printed by default in the project language. To change the print language of a report, use: | | Messages displayed in the current runtime language. To change the language when displaying the message, use Nation. Caution: the language will be modified from the call to Nation and until the next call to Nation. | |
(*): if the control caption does not exist in the display language, the control is left empty in the editor.